sql
stringlengths 9
2.37k
| table
stringclasses 9
values | query
stringlengths 51
503
|
---|---|---|
SELECT Ceremony FROM table WHERE Nominee = harnam singh rawail | CREATE TABLE INST, Here is a database schema( table schema); | In which ceremony was Harnam Singh Rawail nominated for an award?.It is not neccessary to use all the tables. |
SELECT 2/3 (P) FROM table WHERE Verb = khêla | CREATE TABLE INST, Here is a database schema( table schema); | WHICH 2/3 (P) has a Verb of khêla?.It is not neccessary to use all the tables. |
SELECT COUNT(attendance) FROM table_name_8 WHERE date = "june 24" | CREATE TABLE INST, Here is a database schema( table schema); | what is the number of attendance on june 24It is not neccessary to use all the tables. |
SELECT Location FROM table WHERE Call sign = cjtw-fm | CREATE TABLE INST, Here is a database schema( table schema); | Which Location has a Call sign of cjtw-fm?.It is not neccessary to use all the tables. |
SELECT Released FROM table WHERE Model = precision m60 | CREATE TABLE INST, Here is a database schema( table schema); | what is the release date of the model precision m60?.It is not neccessary to use all the tables. |
SELECT date FROM table_name_23 WHERE scorers = "parkinson" | CREATE TABLE INST, Here is a database schema( table schema); | what is the date when scorers is parkinson?It is not neccessary to use all the tables. |
SELECT salary, manager_id FROM employees WHERE manager_id <> "null" | CREATE TABLE INST, Here is a database schema( table schema); | Find the salary and manager number for those employees who is working under a manager.It is not neccessary to use all the tables. |
SELECT title FROM table_name_50 WHERE weeks_on_chart__uk_ = 23 | CREATE TABLE INST, Here is a database schema( table schema); | Which single was on the Charts for 23 weeks ?It is not neccessary to use all the tables. |
SELECT Event 3 Squat Lift FROM table WHERE Nationality = United States AND Event 2 Truck Pull = 1 (42.66s) | CREATE TABLE INST, Here is a database schema( table schema); | What was the result(s) in the event 3 squatlift for the man from the United states with a result of 1 (42.66s) in the event 2 truck pull?.It is not neccessary to use all the tables. |
SELECT Simplified Chinese FROM table WHERE Standard order > 4 AND Transcription (based on Pinyin) = bei hui feng | CREATE TABLE INST, Here is a database schema( table schema); | What is the simplified Chinese with a standard order over 4, and the transcription of Bei Hui Feng?.It is not neccessary to use all the tables. |
SELECT Score FROM table WHERE Visitor = new york | CREATE TABLE INST, Here is a database schema( table schema); | Which score has a visitor of New York?.It is not neccessary to use all the tables. |
SELECT MAX(Champions) AS league FROM table_name_48 WHERE total = 6 AND position = "midfielder" | CREATE TABLE INST, Here is a database schema( table schema); | What is the most Champions League assists for those with a total of 6 and position of Midfielder?It is not neccessary to use all the tables. |
SELECT COUNT(*) FROM Students WHERE NOT student_id IN (SELECT student_id FROM Student_Course_Enrolment) | CREATE TABLE INST, Here is a database schema( table schema); | How many students did not have any course enrollment?It is not neccessary to use all the tables. |
SELECT outcome FROM table_name_99 WHERE date = "25 october 2004" | CREATE TABLE INST, Here is a database schema( table schema); | What was the outcome on 25 october 2004?It is not neccessary to use all the tables. |
SELECT years_for_grizzlies FROM table_name_62 WHERE school_club_team = "providence" | CREATE TABLE INST, Here is a database schema( table schema); | Which years did the player from Providence play for Memphis?It is not neccessary to use all the tables. |
SELECT Country FROM table WHERE Skip = Andrea Schöpp | CREATE TABLE INST, Here is a database schema( table schema); | Andrea Schöpp is the skip of which country?.It is not neccessary to use all the tables. |
SELECT Team FROM table WHERE Category = Field goal percentage | CREATE TABLE INST, Here is a database schema( table schema); | Who was the team when the category is field goal percentage?.It is not neccessary to use all the tables. |
SELECT team FROM table_name_9 WHERE player = "jason romano" | CREATE TABLE INST, Here is a database schema( table schema); | Jason Romano played for what team?It is not neccessary to use all the tables. |
SELECT total FROM table_name_3 WHERE event = "wc belgrade" AND rank_points = "10" | CREATE TABLE INST, Here is a database schema( table schema); | What's the total for the wc belgrade event with 10 rank points?It is not neccessary to use all the tables. |
SELECT Games FROM table WHERE Event = long jump | CREATE TABLE INST, Here is a database schema( table schema); | Which games saw a record set in the long jump event?.It is not neccessary to use all the tables. |
SELECT venue FROM table_name_52 WHERE away_team = "melbourne" | CREATE TABLE INST, Here is a database schema( table schema); | What venue did melbourne play at as the away team?It is not neccessary to use all the tables. |
SELECT Language FROM table WHERE Country = argentina | CREATE TABLE INST, Here is a database schema( table schema); | What is Argentina's language?.It is not neccessary to use all the tables. |
SELECT percentage (%) FROM table WHERE Number = 1 343 | CREATE TABLE INST, Here is a database schema( table schema); | Name the percentage with number of 1 343.It is not neccessary to use all the tables. |
SELECT MIN Number of people 1991 FROM table WHERE Percent of Slovenes 1991 = 92.5% | CREATE TABLE INST, Here is a database schema( table schema); | Give me the minimum number of people in 1991 with 92.5% of Slovenes in 1991..It is not neccessary to use all the tables. |
SELECT max. torque at rpm FROM table WHERE engine code(s) = bjb/bkc/bxe/bls | CREATE TABLE INST, Here is a database schema( table schema); | What is the maximum torque at rpm for the engine coded BJB/BKC/BXE/BLS?.It is not neccessary to use all the tables. |
SELECT Result FROM table WHERE Incumbent = Billy Lee Evans | CREATE TABLE INST, Here is a database schema( table schema); | In the race involving Billy Lee Evans as the seated Representative, was he elected again?.It is not neccessary to use all the tables. |
SELECT T1.paragraph_text FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id WHERE T2.document_name = "Customer reviews" | CREATE TABLE INST, Here is a database schema( table schema); | Show all paragraph texts for the document "Customer reviews".It is not neccessary to use all the tables. |
SELECT MIN(rank__timeslot_) FROM table_name_29 WHERE rating < 2.6 | CREATE TABLE INST, Here is a database schema( table schema); | What is the smallest timeslot rank when the rating is smaller than 2.6?It is not neccessary to use all the tables. |
SELECT "Height" FROM table_49665 WHERE "2013 club" = 'wvc dynamo moscow' | CREATE TABLE INST, Here is a database schema( table schema); | Name the Height which has a 2013 club of wvc dynamo moscow?It is not neccessary to use all the tables. |
SELECT Official website FROM table WHERE Number of episodes > 22 AND English title (Chinese title) = burning flame 烈火雄心 | CREATE TABLE INST, Here is a database schema( table schema); | What's the official website of Burning Flame 烈火雄心 with 22 episodes?.It is not neccessary to use all the tables. |
SELECT "Date entered service" FROM table_17025 WHERE "Ships name" = 'Zeeland' | CREATE TABLE INST, Here is a database schema( table schema); | what's the date where ships name is zeeland entered serviceIt is not neccessary to use all the tables. |
SELECT AVG(points) FROM table_name_18 WHERE chassis = "ferrari 1512" AND year > 1965 | CREATE TABLE INST, Here is a database schema( table schema); | What is the average points of the Ferrari 1512 Chassis after 1965?It is not neccessary to use all the tables. |
SELECT Period FROM table WHERE Built = 578 | CREATE TABLE INST, Here is a database schema( table schema); | In what time period were 578 built?.It is not neccessary to use all the tables. |
SELECT cup_apps FROM table_name_17 WHERE league_goals > 10 AND league_apps = 23 | CREATE TABLE INST, Here is a database schema( table schema); | How many cup apps for the season where there are more than 10 league goals and 23 league apps?It is not neccessary to use all the tables. |
SELECT AVG(election) FROM table_name_35 WHERE municipality = "laives" AND inhabitants < 17 OFFSET 197 | CREATE TABLE INST, Here is a database schema( table schema); | Which Election has a Municipality of laives and Inhabitants smaller than 17197?It is not neccessary to use all the tables. |
SELECT Wards/ Branches in Arkansas FROM table WHERE Stake = fort smith arkansas | CREATE TABLE INST, Here is a database schema( table schema); | What is the wards/branches of the fort smith Arkansas stake?.It is not neccessary to use all the tables. |
SELECT Runner(s)-up FROM table WHERE Championship = women's western open AND Year = 1946 | CREATE TABLE INST, Here is a database schema( table schema); | In 1946, what is the Runner(s)-up of the Women's Western Open Championship?.It is not neccessary to use all the tables. |
SELECT season FROM table_name_33 WHERE away = "2-2" AND home = "1-0" | CREATE TABLE INST, Here is a database schema( table schema); | In which season was the Away record 2-2 and At Home record 1-0?It is not neccessary to use all the tables. |
SELECT date FROM table_name_45 WHERE venue = "estadio alejandro villanueva" AND season > 2003 AND competition_round = "torneo apertura" AND winner = "universitario" | CREATE TABLE INST, Here is a database schema( table schema); | On what date did Universitario win the Torneo Apertura round after 2003 at Estadio Alejandro Villanueva?It is not neccessary to use all the tables. |
SELECT least_compression_at_24_fps FROM table_1251878_3 WHERE mpix = "5.0" | CREATE TABLE INST, Here is a database schema( table schema); | What is the smallest frames per minute when the pixels are 5.0It is not neccessary to use all the tables. |
SELECT total FROM table_name_13 WHERE score_points = "11" | CREATE TABLE INST, Here is a database schema( table schema); | which Total has a Score points of 11?It is not neccessary to use all the tables. |
SELECT COUNT Frequency FROM table WHERE Part Number(s) = ADO540BIAA5DO | CREATE TABLE INST, Here is a database schema( table schema); | How many different frequencies does the model with part number ado540biaa5do? .It is not neccessary to use all the tables. |
SELECT championship FROM table_22834834_2 WHERE year = 1993 | CREATE TABLE INST, Here is a database schema( table schema); | Who is the championship for the year of 1993?It is not neccessary to use all the tables. |
SELECT Incumbent FROM table WHERE District = Louisiana 7 | CREATE TABLE INST, Here is a database schema( table schema); | Who was the winner in the Louisiana 7 district?.It is not neccessary to use all the tables. |
SELECT AVG Points FROM table WHERE Team = minardi team usa AND Grid = 3 AND Laps > 68 | CREATE TABLE INST, Here is a database schema( table schema); | How many average points did the team Minardi Team USA have when there was a grid 3 and more laps than 68?.It is not neccessary to use all the tables. |
SELECT competition FROM table_name_98 WHERE man_of_the_match = "stuart potts" | CREATE TABLE INST, Here is a database schema( table schema); | Which competition has stuart potts as the man of the match?It is not neccessary to use all the tables. |
SELECT MIN Games played FROM table WHERE Category = Points per game | CREATE TABLE INST, Here is a database schema( table schema); | What is the games played when the category is points per game?.It is not neccessary to use all the tables. |
SELECT Report FROM table WHERE Score = 3–1 AND Set 1 = 19–25 | CREATE TABLE INST, Here is a database schema( table schema); | What is the Report with a Score of 3–1, and Set 1 is 19–25?.It is not neccessary to use all the tables. |
SELECT total_passengers_2008 FROM table_13836704_4 WHERE change_2008_09 = "6.5%" | CREATE TABLE INST, Here is a database schema( table schema); | what's the total passengers 2008 with change 2008/09 being 6.5%It is not neccessary to use all the tables. |
SELECT team_c FROM table_name_44 WHERE team_e = "dhez javier" | CREATE TABLE INST, Here is a database schema( table schema); | Who is team c when dhez javier is team e?It is not neccessary to use all the tables. |
SELECT MIN(losses) FROM table_name_24 WHERE gains < 0 | CREATE TABLE INST, Here is a database schema( table schema); | Can you tell me the lowest Losses that has the Gains smaller than 0?It is not neccessary to use all the tables. |
SELECT windows_builders FROM table_22903426_1 WHERE name = "Apache Gump" | CREATE TABLE INST, Here is a database schema( table schema); | Name the windows builders for apache gumpIt is not neccessary to use all the tables. |
SELECT COUNT(matchup_results) FROM table_23718905_6 WHERE city = "San Diego, California" | CREATE TABLE INST, Here is a database schema( table schema); | How many different matchup/results appear in San Diego California?It is not neccessary to use all the tables. |
SELECT Investor, COUNT(*) FROM entrepreneur GROUP BY Investor | CREATE TABLE INST, Here is a database schema( table schema); | Return a pie on what are the investors of entrepreneurs and the corresponding number of entrepreneurs invested by each investor?It is not neccessary to use all the tables. |
SELECT opponent FROM table_name_65 WHERE type = "ud" AND round = "10" AND date = "2008-06-11" | CREATE TABLE INST, Here is a database schema( table schema); | Which Opponent has a Type of ud and a Round of 10 on 2008-06-11?It is not neccessary to use all the tables. |
SELECT AVG(round) FROM table_name_63 WHERE college_junior_club_team__league_ = "hamilton red wings (oha)" AND position = "rw" | CREATE TABLE INST, Here is a database schema( table schema); | Which Round has a College/Junior/Club Team (League) of hamilton red wings (oha), and a Position of rw?It is not neccessary to use all the tables. |
SELECT Event FROM table WHERE Year = 1971 AND Result = 6th | CREATE TABLE INST, Here is a database schema( table schema); | In which event did he place 6th in 1971?.It is not neccessary to use all the tables. |
SELECT Batsmen FROM table WHERE Year = 2002 | CREATE TABLE INST, Here is a database schema( table schema); | Who are the Batsmen from the year 2002?.It is not neccessary to use all the tables. |
SELECT Driver FROM table WHERE Laps = 58 | CREATE TABLE INST, Here is a database schema( table schema); | Tell me the driver for 58 laps.It is not neccessary to use all the tables. |
SELECT MAX(stars), MIN(stars) FROM Rating | CREATE TABLE INST, Here is a database schema( table schema); | What is the lowest and highest rating star?It is not neccessary to use all the tables. |
SELECT Runner-up FROM table WHERE Margin of victory = 2 strokes AND To par = −16 | CREATE TABLE INST, Here is a database schema( table schema); | Who was the runner-up in the tournament that has a margin of victory of 2 strokes, and a To par of −16?.It is not neccessary to use all the tables. |
SELECT Winter Olympics FROM table WHERE Country = japan | CREATE TABLE INST, Here is a database schema( table schema); | What was the Winter Olympics was Japan as the country?.It is not neccessary to use all the tables. |
SELECT Version FROM table WHERE Year = 1940-45 | CREATE TABLE INST, Here is a database schema( table schema); | Tell me the version for 1940-45.It is not neccessary to use all the tables. |
SELECT Election FROM table WHERE 1st Member = constituency abolished | CREATE TABLE INST, Here is a database schema( table schema); | In which election was the constituency abolished?.It is not neccessary to use all the tables. |
SELECT "Date" FROM table_46086 WHERE "Record" = '12–7–6' | CREATE TABLE INST, Here is a database schema( table schema); | What is the Date of the game with a Record of 12 7 6?It is not neccessary to use all the tables. |
SELECT launch_date FROM table_name_30 WHERE odds_of_winning = "1 in 4.23" AND top_prize = "$15,000" | CREATE TABLE INST, Here is a database schema( table schema); | What is the launch date odds of winning 1 in 4.23 with a top prize of $15,000?It is not neccessary to use all the tables. |
SELECT date FROM table_name_6 WHERE away = "high park demons" | CREATE TABLE INST, Here is a database schema( table schema); | What is Date when Away is High Park Demons?It is not neccessary to use all the tables. |
SELECT MIN(round) FROM table_name_96 WHERE time = "1:12" | CREATE TABLE INST, Here is a database schema( table schema); | What is the smallest round with a time of 1:12?It is not neccessary to use all the tables. |
SELECT home_captain FROM table_name_13 WHERE venue = "oval" | CREATE TABLE INST, Here is a database schema( table schema); | Who was the Home captain that played at the venue Oval?It is not neccessary to use all the tables. |
SELECT MAX(contestants) FROM table_25214321_1 WHERE runner_up = "Monique Evans" | CREATE TABLE INST, Here is a database schema( table schema); | How many contestants were there when the runner-up was Monique Evans?It is not neccessary to use all the tables. |
SELECT MIN("Points") FROM table_5704 WHERE "League" = 'w-2 (w-league)' AND "Draws" > '2' | CREATE TABLE INST, Here is a database schema( table schema); | What is the lowest points that has w-2 (w-league) as the league, and draws greater than 2?It is not neccessary to use all the tables. |
SELECT club FROM table_name_91 WHERE time = "4:03.63" | CREATE TABLE INST, Here is a database schema( table schema); | Who is the club with a 4:03.63 time?It is not neccessary to use all the tables. |
SELECT became_consort FROM table_name_14 WHERE ceased_to_be_consort = "4 april 1588 husband's death" | CREATE TABLE INST, Here is a database schema( table schema); | Name the became consort for ceased to be consort of 4 april 1588 husband's deathIt is not neccessary to use all the tables. |
SELECT * FROM table_test_4 WHERE cardiogenic_shock = 1 OR systolic_blood_pressure_sbp < 100 OR diastolic_blood_pressure_dbp < 60 | CREATE TABLE INST, Here is a database schema( table schema); | cardiogenic shock or systolic bp < 100 mmhg or diastolic < 60 mmhg within the 24 hours prior to visits 1 or 2It is not neccessary to use all the tables. |
SELECT MIN(cores) FROM table_24099916_1 | CREATE TABLE INST, Here is a database schema( table schema); | What's the smallest number for cores of any of the processor models?It is not neccessary to use all the tables. |
SELECT constructor FROM table_name_84 WHERE driver = "alex yoong" | CREATE TABLE INST, Here is a database schema( table schema); | Who built Alex Yoong's car?It is not neccessary to use all the tables. |
SELECT Name FROM table WHERE Sport = athletics AND Date < 16 | CREATE TABLE INST, Here is a database schema( table schema); | Who had the sport of athletics on a date earlier than 16?.It is not neccessary to use all the tables. |
SELECT speed FROM table_name_80 WHERE location = "lake mead" | CREATE TABLE INST, Here is a database schema( table schema); | What is the Speed at Lake Mead?It is not neccessary to use all the tables. |
SELECT helium FROM table_name_54 WHERE argon = "−189.6" | CREATE TABLE INST, Here is a database schema( table schema); | which Helium has a Argon of −189.6?It is not neccessary to use all the tables. |
SELECT country FROM singer WHERE age > 40 INTERSECT SELECT country FROM singer WHERE age < 30 | CREATE TABLE INST, Here is a database schema( table schema); | Show countries where a singer above age 40 and a singer below 30 are from.It is not neccessary to use all the tables. |
SELECT nation FROM table_name_89 WHERE time = "51.35" AND heat_semifinal_final = "final" | CREATE TABLE INST, Here is a database schema( table schema); | What nation has a time of 51.35 in the final heat?It is not neccessary to use all the tables. |
SELECT date FROM table_name_40 WHERE result = "8-0" | CREATE TABLE INST, Here is a database schema( table schema); | What date had a result of 8-0?It is not neccessary to use all the tables. |
SELECT position FROM table_name_47 WHERE overall < 100 AND college = "north carolina" | CREATE TABLE INST, Here is a database schema( table schema); | What is the position of the player from the college of North Carolina with an overall less than 100?It is not neccessary to use all the tables. |
SELECT Awardee(s) FROM table WHERE Name of Award = Best Actor | CREATE TABLE INST, Here is a database schema( table schema); | Who won best actor?.It is not neccessary to use all the tables. |
SELECT College/junior/club team FROM table WHERE NHL team = Buffalo Sabres | CREATE TABLE INST, Here is a database schema( table schema); | Which junior team is associated with an NHL pick by the Buffalo Sabres?.It is not neccessary to use all the tables. |
SELECT 2012 FROM table_name_86 WHERE 2011 = "28.9%" | CREATE TABLE INST, Here is a database schema( table schema); | What is listed for the 2012 that has a 2011 of 28.9%?It is not neccessary to use all the tables. |
SELECT name FROM table_name_9 WHERE qual_2 = "1:01.777" | CREATE TABLE INST, Here is a database schema( table schema); | Who had a second qualification time of 1:01.777?It is not neccessary to use all the tables. |
SELECT "1st leg" FROM table_500 WHERE "Club" = 'A.C. Libertas' | CREATE TABLE INST, Here is a database schema( table schema); | What is the 1st leg when club is a.c. libertas?It is not neccessary to use all the tables. |
SELECT SUM(no_in_series) FROM table_name_38 WHERE director = "jefferson kibbee" AND production_code = "2398191" | CREATE TABLE INST, Here is a database schema( table schema); | What is the total series numbers that is directed by Jefferson Kibbee and has a production code of 2398191?It is not neccessary to use all the tables. |
SELECT Record FROM table WHERE Opponent = rangers AND Date = august 29 | CREATE TABLE INST, Here is a database schema( table schema); | On August 29, What was the record playing against the Rangers?.It is not neccessary to use all the tables. |
SELECT diagnosis.diagnosisname FROM diagnosis WHERE diagnosis.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '010-39202' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmittime LIMIT 1)) ORDER BY diagnosis.diagnosistime LIMIT 1 | CREATE TABLE INST, Here is a database schema( table schema); | what was patient 010-39202 diagnosed with first time during the first hospital visit.It is not neccessary to use all the tables. |
SELECT MIN(population) FROM table_name_72 WHERE area__km²_ = 1115.4 | CREATE TABLE INST, Here is a database schema( table schema); | What is the smallest population with an Area (km²) of 1115.4?It is not neccessary to use all the tables. |
SELECT Year FROM table WHERE Color commentator(s) = jerry sichting | CREATE TABLE INST, Here is a database schema( table schema); | Name the year for jerry sichting.It is not neccessary to use all the tables. |
SELECT Song choice FROM table WHERE Original artist = Rickie Lee Jones | CREATE TABLE INST, Here is a database schema( table schema); | Which one of the songs was originally performed by Rickie Lee Jones?.It is not neccessary to use all the tables. |
SELECT MAX Assists FROM table WHERE Games played = 25 | CREATE TABLE INST, Here is a database schema( table schema); | What is the most number of assists for players with exactly 25 games played?.It is not neccessary to use all the tables. |
SELECT Date FROM table WHERE Week = 3 | CREATE TABLE INST, Here is a database schema( table schema); | What was the date of the game in week 3?.It is not neccessary to use all the tables. |
SELECT JOB_ID, AVG(EMPLOYEE_ID) FROM employees WHERE HIRE_DATE < '2002-06-21' GROUP BY JOB_ID | CREATE TABLE INST, Here is a database schema( table schema); | For those employees who was hired before 2002-06-21, give me the comparison about the average of employee_id over the job_id , and group by attribute job_id by a bar chart.It is not neccessary to use all the tables. |
SELECT COUNT(crowd) FROM table_name_45 WHERE venue = "mcg" | CREATE TABLE INST, Here is a database schema( table schema); | What is the crowd total at mcg?It is not neccessary to use all the tables. |
SELECT MIN(interview) FROM table_name_3 WHERE evening_gown < 8.938 AND state = "texas" AND average < 8.846 | CREATE TABLE INST, Here is a database schema( table schema); | What is the lowest evening score of the contestant with an evening gown less than 8.938 from Texas and with an average less than 8.846 has?It is not neccessary to use all the tables. |
SELECT mls_team FROM table_29626583_3 WHERE position = "Midfielder" AND player = "Konrad Warzycha" | CREATE TABLE INST, Here is a database schema( table schema); | Which team has a midfielder of konrad warzycha?It is not neccessary to use all the tables. |