sql stringlengths 9 2.37k | table stringclasses 9
values | query stringlengths 51 503 |
|---|---|---|
SELECT SUM Attendance FROM table WHERE Score = 3:1 | CREATE TABLE INST, Here is a database schema( table schema); | What was the total attendance for the 3:1 game?.It is not neccessary to use all the tables. |
SELECT position FROM table_name_22 WHERE round > 14 AND school_club_team = "north texas" | CREATE TABLE INST, Here is a database schema( table schema); | Which Position has a Round larger than 14 and a School/Club Team of north texas?It is not neccessary to use all the tables. |
SELECT JOB_ID, AVG(EMPLOYEE_ID) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 GROUP BY JOB_ID ORDER BY AVG(EMPLOYEE_ID) | CREATE TABLE INST, Here is a database schema( table schema); | For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, find job_id and the average of employee_id , and group by attribute job_id, and visualize them by a bar chart, I want to display from low to high by the y axis.It is not neccessary to... |
SELECT "Year [e ] (Ceremony)" FROM table_22142 WHERE "Director" = 'Otar Iosseliani' | CREATE TABLE INST, Here is a database schema( table schema); | when was otar iosseliani's film selectedIt is not neccessary to use all the tables. |
SELECT Set 1 FROM table WHERE Set 2 = 21:17 | CREATE TABLE INST, Here is a database schema( table schema); | What is the Set 1 with set 2 at 21:17?.It is not neccessary to use all the tables. |
SELECT date FROM table_name_56 WHERE race_title = "sandown" | CREATE TABLE INST, Here is a database schema( table schema); | what day was the sandownIt is not neccessary to use all the tables. |
SELECT Engine † FROM table WHERE Tyre = m AND Driver = fernando alonso | CREATE TABLE INST, Here is a database schema( table schema); | what is the engine when the tyre is m and the driver is fernando alonso?.It is not neccessary to use all the tables. |
SELECT Ezhavas FROM table WHERE Muslims = 5.4 | CREATE TABLE INST, Here is a database schema( table schema); | Name the ezhavas for muslims being 5.4.It is not neccessary to use all the tables. |
SELECT pick FROM table_1013129_3 WHERE player = "Dorain Anneck" | CREATE TABLE INST, Here is a database schema( table schema); | What's Dorain Anneck's pick number?It is not neccessary to use all the tables. |
SELECT date FROM table_name_43 WHERE surface = "clay" AND opponent = "irina falconi" | CREATE TABLE INST, Here is a database schema( table schema); | What was the date of the tournament with a clay surface and an opponent of Irina Falconi?It is not neccessary to use all the tables. |
SELECT _percentage_yes FROM table_256286_43 WHERE type = "Ref" | CREATE TABLE INST, Here is a database schema( table schema); | What is every value for %yes when type is ref?It is not neccessary to use all the tables. |
SELECT Lead FROM table WHERE Third = tara george | CREATE TABLE INST, Here is a database schema( table schema); | WHAT IS THE LEAD WITH THIRD AS TARA GEORGE?.It is not neccessary to use all the tables. |
SELECT Term ended FROM table WHERE Term began = January 3, 2007 | CREATE TABLE INST, Here is a database schema( table schema); | When did the term end that began January 3, 2007?.It is not neccessary to use all the tables. |
SELECT COUNT(goals_against) FROM table_name_19 WHERE played > 38 | CREATE TABLE INST, Here is a database schema( table schema); | What is the number of goals against when the played is more than 38?It is not neccessary to use all the tables. |
SELECT visitor FROM table_name_46 WHERE date = "2006-11-04" | CREATE TABLE INST, Here is a database schema( table schema); | What is the name of the visitor on 2006-11-04?It is not neccessary to use all the tables. |
SELECT MAX Yards FROM table WHERE Name = Bobby Layne | CREATE TABLE INST, Here is a database schema( table schema); | How many total yards for Bobby Layne?.It is not neccessary to use all the tables. |
SELECT Venue FROM table WHERE Competition = friendly AND Date = 17 december 1967 | CREATE TABLE INST, Here is a database schema( table schema); | Where was the friendly competition on 17 December 1967 played at?.It is not neccessary to use all the tables. |
SELECT name FROM airports WHERE elevation BETWEEN -50 AND 50 | CREATE TABLE INST, Here is a database schema( table schema); | Find the name of airports whose altitude is between -50 and 50.It is not neccessary to use all the tables. |
SELECT won FROM table_13741576_4 WHERE try_bonus = "10" | CREATE TABLE INST, Here is a database schema( table schema); | Name the won for try bonus of 10It is not neccessary to use all the tables. |
SELECT MAX(grid) FROM table_name_70 WHERE bike = "honda cbr1000rr" AND time = "+20.848" AND laps > 24 | CREATE TABLE INST, Here is a database schema( table schema); | What is the largest Grid that has a Bike of honda cbr1000rr and a Time of +20.848 and a Lap greater than 24?It is not neccessary to use all the tables. |
SELECT MIN("Goals for") FROM table_12551 WHERE "Draws" < '4' AND "Points" < '27' | CREATE TABLE INST, Here is a database schema( table schema); | What is the lowest Goals For, when Draws is less than 4, and when Points is less than 27?It is not neccessary to use all the tables. |
SELECT high_rebounds FROM table_17326036_5 WHERE date = "November 1" | CREATE TABLE INST, Here is a database schema( table schema); | Who did the most high rebounds in the game played on November 1?It is not neccessary to use all the tables. |
SELECT Heat FROM table WHERE Time = 15:29.69 | CREATE TABLE INST, Here is a database schema( table schema); | At time 15:29.69 what was the heat?.It is not neccessary to use all the tables. |
SELECT Time FROM table WHERE Event = k-1 the challenge 1999 | CREATE TABLE INST, Here is a database schema( table schema); | What time was the event k-1 the challenge 1999?.It is not neccessary to use all the tables. |
SELECT MAX 2010 FROM table WHERE Economy = China | CREATE TABLE INST, Here is a database schema( table schema); | What is the maximum 2010 value for China?.It is not neccessary to use all the tables. |
SELECT name FROM table_name_76 WHERE club = "dinamo moscow" AND pos = "d" | CREATE TABLE INST, Here is a database schema( table schema); | What is the Name of the D Player from the Dinamo Moscow Club?It is not neccessary to use all the tables. |
SELECT Block A FROM table WHERE Antonio Thomas = kondo (13:24) | CREATE TABLE INST, Here is a database schema( table schema); | Tell me the block A for antonio thomas of kondo (13:24).It is not neccessary to use all the tables. |
SELECT Type FROM table WHERE In service > 2 AND Vessel = kobben class | CREATE TABLE INST, Here is a database schema( table schema); | What type of ship is a Kobben class vessel that has been in service longer than 2?.It is not neccessary to use all the tables. |
SELECT Episode FROM table WHERE Entrepreneur(s) = layla bennett | CREATE TABLE INST, Here is a database schema( table schema); | The entrepreneur Layla Bennett was featured in which episode?.It is not neccessary to use all the tables. |
SELECT points_difference FROM table_20760802_1 WHERE lost = "10" | CREATE TABLE INST, Here is a database schema( table schema); | How many of the points difference lost equal 10?It is not neccessary to use all the tables. |
SELECT Purpose FROM table WHERE Freq currently = 4rph | CREATE TABLE INST, Here is a database schema( table schema); | What is the Purpose of the Callsign with a Freq currently of 4rph?.It is not neccessary to use all the tables. |
SELECT Attendance FROM table WHERE Tie no = 1 | CREATE TABLE INST, Here is a database schema( table schema); | How many were in Attendance during a Tie no of 1?.It is not neccessary to use all the tables. |
SELECT semi_finalists FROM table_name_92 WHERE runner_up = "alexandra fusai wiltrud probst" | CREATE TABLE INST, Here is a database schema( table schema); | Who were the semi finalists when the runner-up was Alexandra Fusai Wiltrud Probst?It is not neccessary to use all the tables. |
SELECT writer FROM table_name_8 WHERE actual_title = "mork & mindy" | CREATE TABLE INST, Here is a database schema( table schema); | What is the Writer with an Actual Title that is mork & mindy?It is not neccessary to use all the tables. |
SELECT Date FROM table WHERE Margin of victory = 1 stroke AND Tournament = colonial national invitation | CREATE TABLE INST, Here is a database schema( table schema); | What day was the margin of victory 1 stroke when the tournament was colonial national invitation?.It is not neccessary to use all the tables. |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.gender = "F" AND procedures.short_title = "Cont inv mec ven 96+ hrs" | CREATE TABLE INST, Here is a database schema( table schema); | provide the number of patients whose gender is f and procedure short title is cont inv mec ven 96+ hrs?It is not neccessary to use all the tables. |
SELECT COUNT(title) FROM table_12159115_2 WHERE production_code = "2T6705" | CREATE TABLE INST, Here is a database schema( table schema); | What's the total number of episodes with production code 2T6705?It is not neccessary to use all the tables. |
SELECT Time/Retired FROM table WHERE Laps > 52 AND Grid > 21 | CREATE TABLE INST, Here is a database schema( table schema); | What is the Time/Retired for laps higher than 52 on a grid larger than 21?.It is not neccessary to use all the tables. |
SELECT population_density__per_km²_ FROM table_name_8 WHERE change___percentage_ = "-6.7" | CREATE TABLE INST, Here is a database schema( table schema); | What is the population density (per km) that has -6.7 as the change (%)?It is not neccessary to use all the tables. |
SELECT COUNT Position FROM table WHERE Lost < 1 | CREATE TABLE INST, Here is a database schema( table schema); | What was the position with the total number less than 1?.It is not neccessary to use all the tables. |
SELECT MIN(favorable) FROM table_name_72 WHERE date = "1954 june" AND unfavorable > 45 | CREATE TABLE INST, Here is a database schema( table schema); | which is the lowest favorable on 1954 June and more unfavorable than 45?It is not neccessary to use all the tables. |
SELECT game FROM table_name_13 WHERE year = 2011 | CREATE TABLE INST, Here is a database schema( table schema); | Which game was released in 2011?It is not neccessary to use all the tables. |
SELECT conflict FROM table_1921_1 WHERE location = "Yemen" | CREATE TABLE INST, Here is a database schema( table schema); | Which conflicts took place in Yemen?It is not neccessary to use all the tables. |
SELECT MAX(points_won) FROM table_name_14 WHERE year = "1996" | CREATE TABLE INST, Here is a database schema( table schema); | How many points were won in 1996?It is not neccessary to use all the tables. |
SELECT lost FROM table_name_72 WHERE drawn = "1" AND points_for = "515" | CREATE TABLE INST, Here is a database schema( table schema); | what is the amount lost when there is 1 draw and 515 points?It is not neccessary to use all the tables. |
SELECT COUNT(losing_hand) FROM table_12454156_1 WHERE year = 2007 | CREATE TABLE INST, Here is a database schema( table schema); | How many losing hands are there before 2007?It is not neccessary to use all the tables. |
SELECT District FROM table WHERE Incumbent = S. William Green | CREATE TABLE INST, Here is a database schema( table schema); | What district did S. William Green belong to?.It is not neccessary to use all the tables. |
SELECT Economic Class FROM table WHERE Barangay = imelda bliss village | CREATE TABLE INST, Here is a database schema( table schema); | Which Economic Class has a Barangay of imelda bliss village?.It is not neccessary to use all the tables. |
SELECT COUNT(club) FROM table_14070062_3 WHERE try_bonus = "5" | CREATE TABLE INST, Here is a database schema( table schema); | How many clubs have a try bonus value of 5?It is not neccessary to use all the tables. |
SELECT location_code FROM Ref_locations WHERE location_name = "Canada" | CREATE TABLE INST, Here is a database schema( table schema); | What is the location code for the country "Canada"?It is not neccessary to use all the tables. |
SELECT Period FROM table WHERE Appearances¹ = 380 | CREATE TABLE INST, Here is a database schema( table schema); | Name the period for appearances being 380.It is not neccessary to use all the tables. |
SELECT Game FROM table WHERE Record = 3-1 | CREATE TABLE INST, Here is a database schema( table schema); | What game number had a record of 3-1?.It is not neccessary to use all the tables. |
SELECT 2009/ 10 FROM table WHERE 2004/ 05 = variant format tournaments | CREATE TABLE INST, Here is a database schema( table schema); | What was held in 2009/10 when 2004/05 was Variant Format Tournaments?.It is not neccessary to use all the tables. |
SELECT Home Team FROM table WHERE Result = 105-99 | CREATE TABLE INST, Here is a database schema( table schema); | Who was the home team with a result of 105-99?.It is not neccessary to use all the tables. |
SELECT class FROM table_name_36 WHERE quantity_made = "1" AND fleet_number_s_ = "406" | CREATE TABLE INST, Here is a database schema( table schema); | What class had 1 made and fleet number of 406?It is not neccessary to use all the tables. |
SELECT team FROM table_1769428_2 WHERE date = "June 27" | CREATE TABLE INST, Here is a database schema( table schema); | What was the represented team on June 27?It is not neccessary to use all the tables. |
SELECT COUNT Tomina Municipality FROM table WHERE Villa Alcalá Municipality = 176 | CREATE TABLE INST, Here is a database schema( table schema); | Name the number of tomina for villa alcala for 176.It is not neccessary to use all the tables. |
SELECT Podiums FROM table WHERE Series = world rally championship | CREATE TABLE INST, Here is a database schema( table schema); | What Podiums listing has a World Rally Championship series entry?.It is not neccessary to use all the tables. |
SELECT song FROM table_name_4 WHERE played_for = "mike fincke" AND artist = "rush" | CREATE TABLE INST, Here is a database schema( table schema); | Which Rush song was played for Mike Fincke?It is not neccessary to use all the tables. |
SELECT MIN(games) FROM table_20107762_1 WHERE mins = "385:33" | CREATE TABLE INST, Here is a database schema( table schema); | What is the game number with 385:33 mins?It is not neccessary to use all the tables. |
SELECT MAX(round) FROM table_name_98 WHERE time = "3:16" | CREATE TABLE INST, Here is a database schema( table schema); | What is the highest number of rounds for a 3:16 fight?It is not neccessary to use all the tables. |
SELECT Wins FROM table WHERE Year > 1987 AND Points < 188 | CREATE TABLE INST, Here is a database schema( table schema); | How many wins for the year that is later than 1987 and has points less than 188?.It is not neccessary to use all the tables. |
SELECT ICAO FROM table WHERE Airport = luqa airport | CREATE TABLE INST, Here is a database schema( table schema); | What is the ICAO for luqa airport?.It is not neccessary to use all the tables. |
SELECT years_for_jazz FROM table_name_38 WHERE player = "andre owens" | CREATE TABLE INST, Here is a database schema( table schema); | Which player is Andre Owens in Year for Jazz?It is not neccessary to use all the tables. |
SELECT Production code FROM table WHERE U.S. viewers (millions) = 11.64 | CREATE TABLE INST, Here is a database schema( table schema); | What's the production code of the episode seen by 11.64 million US viewers?.It is not neccessary to use all the tables. |
SELECT AVG("City") FROM table_63505 WHERE "Total" < '2' AND "Borough" > '0' | CREATE TABLE INST, Here is a database schema( table schema); | What average city has a total less than 2, with a borough greater than 0?It is not neccessary to use all the tables. |
SELECT MAX Attendance FROM table | CREATE TABLE INST, Here is a database schema( table schema); | Name the most attendance.It is not neccessary to use all the tables. |
SELECT COUNT Year FROM table WHERE Entrant = red bull sauber petronas AND Points > 6 | CREATE TABLE INST, Here is a database schema( table schema); | What number of years did the red bull sauber petronas have greater than 6 points?.It is not neccessary to use all the tables. |
SELECT High rebounds FROM table WHERE High assists = deron williams (5) | CREATE TABLE INST, Here is a database schema( table schema); | Who had the high rebounds of the game that Deron Williams (5) had the high assists?.It is not neccessary to use all the tables. |
SELECT COUNT(*) FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 42829) AND prescriptions.drug = 'metoclopramide' AND DATETIME(prescriptions.startdate, 'start of month') = DATETIME(CURRENT_TIME(), 'start of month', '-0 month') | CREATE TABLE INST, Here is a database schema( table schema); | how many times was the metoclopramide prescribed in this month for patient 42829?It is not neccessary to use all the tables. |
SELECT COUNT(*) FROM table_203_182 WHERE "directed by" = 'shelley jensen' | CREATE TABLE INST, Here is a database schema( table schema); | how many times did shelley jensen directed episodes in season 6 ?It is not neccessary to use all the tables. |
SELECT placing FROM table_name_13 WHERE horse = "viewed" | CREATE TABLE INST, Here is a database schema( table schema); | What place was the viewed horse?It is not neccessary to use all the tables. |
SELECT AVG(against) FROM table_name_97 WHERE wins = 11 AND losses < 7 | CREATE TABLE INST, Here is a database schema( table schema); | Which Against has Wins of 11 and Losses smaller than 7?It is not neccessary to use all the tables. |
SELECT captain FROM table_name_30 WHERE kit_manufacturer = "fox leisure" | CREATE TABLE INST, Here is a database schema( table schema); | Who is the captain of the team that has a kit manufacturer of Fox Leisure?It is not neccessary to use all the tables. |
SELECT name FROM storm WHERE NOT storm_id IN (SELECT storm_id FROM affected_region) | CREATE TABLE INST, Here is a database schema( table schema); | Show the name of storms which don't have affected region in record.It is not neccessary to use all the tables. |
SELECT season FROM table_name_70 WHERE against = "did not qualify for uefa competitions" | CREATE TABLE INST, Here is a database schema( table schema); | Which season did not qualify for UEFA competitions?It is not neccessary to use all the tables. |
SELECT COUNT engine displacement FROM table WHERE engine type = B5204 T3 | CREATE TABLE INST, Here is a database schema( table schema); | How many engine b5204 t3?.It is not neccessary to use all the tables. |
SELECT COUNT(tournament_venue__city_) FROM table_22645714_5 WHERE tournament_winner = "Temple" | CREATE TABLE INST, Here is a database schema( table schema); | How many locations are listed for the winner Temple?It is not neccessary to use all the tables. |
SELECT Score FROM table WHERE Opponent = @ houston AND Record = 2-0 | CREATE TABLE INST, Here is a database schema( table schema); | Which Score has an Opponent of @ houston, and a Record of 2-0?.It is not neccessary to use all the tables. |
SELECT Beer Name FROM table WHERE Prize = silver medal AND Competition = camra reading branch beer festival AND Year = 2008 | CREATE TABLE INST, Here is a database schema( table schema); | What beer won a silver medal at the camra reading branch beer festival in 2008?.It is not neccessary to use all the tables. |
SELECT Venue FROM table WHERE Crowd > 13,828 AND Home team score = 14.21 (105) | CREATE TABLE INST, Here is a database schema( table schema); | Where did the home team score 14.21 (105) with a crowd larger than 13,828?.It is not neccessary to use all the tables. |
SELECT AVG Played FROM table WHERE Position > 16 | CREATE TABLE INST, Here is a database schema( table schema); | What is the number played by the team in place greater than 16?.It is not neccessary to use all the tables. |
SELECT ds_division FROM table_12485020_1 WHERE main_town = "Kaluvanchikudy" | CREATE TABLE INST, Here is a database schema( table schema); | Kaluvanchikudy is the main town in what DS division?It is not neccessary to use all the tables. |
SELECT AVG(T2.stu_gpa) FROM enroll AS T1 JOIN student AS T2 ON T1.stu_num = T2.stu_num JOIN CLASS AS T3 ON T1.class_code = T3.class_code WHERE T3.crs_code = 'ACCT-211' | CREATE TABLE INST, Here is a database schema( table schema); | What is the average gpa of the students enrolled in the course with code ACCT-211?It is not neccessary to use all the tables. |
SELECT winner FROM table_name_5 WHERE city = "panama city" | CREATE TABLE INST, Here is a database schema( table schema); | What is the Winner of the Event in Panama City?It is not neccessary to use all the tables. |
SELECT Motorcycle FROM table WHERE Season = 2012 | CREATE TABLE INST, Here is a database schema( table schema); | Name the motorcycle for season 2012.It is not neccessary to use all the tables. |
SELECT venue FROM table_name_95 WHERE away_team = "melbourne" | CREATE TABLE INST, Here is a database schema( table schema); | Where did Melbourne play as the away team?It is not neccessary to use all the tables. |
SELECT Name FROM actor ORDER BY Name | CREATE TABLE INST, Here is a database schema( table schema); | List the name of actors in ascending alphabetical order.It is not neccessary to use all the tables. |
SELECT MIN Drawn FROM table WHERE Lost = 5 AND Points > 4 | CREATE TABLE INST, Here is a database schema( table schema); | Which Drawn is the lowest one that has a Lost of 5, and Points larger than 4?.It is not neccessary to use all the tables. |
SELECT average FROM table_26611679_3 WHERE games_played = 23 | CREATE TABLE INST, Here is a database schema( table schema); | Name the average for 23 games playedIt is not neccessary to use all the tables. |
SELECT Driver FROM table WHERE Constructor = ferrari AND Time/Retired = +1:06.683 | CREATE TABLE INST, Here is a database schema( table schema); | who is the driver for the car constructed by ferrari with a time/retired of +1:06.683?.It is not neccessary to use all the tables. |
SELECT AVG Attendance FROM table WHERE Date = september 26, 1976 | CREATE TABLE INST, Here is a database schema( table schema); | What is the average attendance for the game on September 26, 1976?.It is not neccessary to use all the tables. |
SELECT AVG Laps FROM table WHERE Grid = 9 | CREATE TABLE INST, Here is a database schema( table schema); | What is the average laps for Grid 9?.It is not neccessary to use all the tables. |
SELECT "Cup FinalDate" FROM table_56418 WHERE "WinningTeam" = 'brisbane lions (1)' | CREATE TABLE INST, Here is a database schema( table schema); | On what date did the Brisbane Lions (1) win?It is not neccessary to use all the tables. |
SELECT COUNT Candidates FROM table WHERE Incumbent = Kenneth A. Roberts | CREATE TABLE INST, Here is a database schema( table schema); | How many candidates represent the district of kenneth a. roberts?.It is not neccessary to use all the tables. |
SELECT sum(T1.c14), sum(T1.c25) FROM FINREV_FED_17 as T1 JOIN FINREV_FED_KEY_17 as T2 ON T1.state_code = T2.state_code WHERE T2.state = "Colorado" | CREATE TABLE INST, Here is a database schema( finrev fed 17); | How much funding does Colorado schools receive from Title 1 and the Child Nutrition program respectively?. It is not neccessary to use all the tables. |
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'ORLANDO' AND flight.arrival_time = (SELECT MIN(FLIGHTalias1.arrival_time) FROM airport_se... | CREATE TABLE INST, Here is a database schema( table schema); | what is the earliest arriving flight from HOUSTON to ORLANDOIt is not neccessary to use all the tables. |
SELECT Power FROM table WHERE Name = 1.2 16v lpg | CREATE TABLE INST, Here is a database schema( table schema); | what is the power when the name is 1.2 16v lpg?.It is not neccessary to use all the tables. |
SELECT COUNT Rating/Share (18–49) FROM table WHERE US air date = Saturday, May 9, 2009 | CREATE TABLE INST, Here is a database schema( table schema); | How many rating/share values does the episode aired on Saturday, May 9, 2009?.It is not neccessary to use all the tables. |
SELECT Economics FROM table WHERE Justice = 90.8 | CREATE TABLE INST, Here is a database schema( table schema); | what's the economics score with justice being 90.8.It is not neccessary to use all the tables. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.