sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT school_club_team FROM table_name_24 WHERE player = "dahntay jones"
CREATE TABLE INST, Here is a database schema( table schema);
Which school did Dahntay Jones graduate from?It is not neccessary to use all the tables.
SELECT thursday FROM table_11019212_1 WHERE location = "Hawthorne"
CREATE TABLE INST, Here is a database schema( table schema);
what's the thursday time with location being hawthorneIt is not neccessary to use all the tables.
SELECT 1997 FROM table_name_23 WHERE 1999 = "grand slams"
CREATE TABLE INST, Here is a database schema( table schema);
What 1997 has grand slams for the 1999?It is not neccessary to use all the tables.
SELECT Natural change FROM table WHERE Crude death rate (per 1000) > 13.2 AND Natural change (per 1000) = 10.6 AND Deaths = 4 321
CREATE TABLE INST, Here is a database schema( table schema);
What is the natural change when crude death rate is more than 13.2, deaths are 4 321 and natural change is 10.6?.It is not neccessary to use all the tables.
SELECT event FROM table_name_87 WHERE opponent = "pat barry"
CREATE TABLE INST, Here is a database schema( table schema);
Which event was against Pat Barry?It is not neccessary to use all the tables.
SELECT opponent FROM table_24560733_1 WHERE date = "Oct. 4"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the opponent on Oct. 4?It is not neccessary to use all the tables.
SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid JOIN inst AS t4 ON t2.instid = t4.instid WHERE t4.country = "Japan" AND t2.authorder = 1 AND t1.lname = "Ohori"
CREATE TABLE INST, Here is a database schema( table schema);
Find the titles of papers whose first author is affiliated with an institution in the country "Japan" and has last name "Ohori"?It is not neccessary to use all the tables.
SELECT location FROM table_29535057_4 WHERE big_ten_team = "Wisconsin"
CREATE TABLE INST, Here is a database schema( table schema);
Where did the games that had Wisconsin as big ten team take place?It is not neccessary to use all the tables.
SELECT tournament FROM table_name_78 WHERE surface = "hard" AND date = "apr. 12, 1998"
CREATE TABLE INST, Here is a database schema( table schema);
Which tournament has hard as the surface and apr. 12, 1998 as the date?It is not neccessary to use all the tables.
SELECT Line Judge FROM table WHERE Referee = scott green
CREATE TABLE INST, Here is a database schema( table schema);
Who was the line judge at the game where Scott Green was referee?.It is not neccessary to use all the tables.
SELECT director FROM table_name_90 WHERE title = "the fugitive"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Director of the Film The Fugitive?It is not neccessary to use all the tables.
SELECT Years of appearance FROM table WHERE Team = Prince Albert Raiders
CREATE TABLE INST, Here is a database schema( table schema);
What is the year of appearance for the Prince Albert Raiders? .It is not neccessary to use all the tables.
SELECT Act FROM table WHERE Name/Name of Act = Zhu Xiaoming
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the performance zhu xiaoming performed?.It is not neccessary to use all the tables.
SELECT MAX(week) FROM table_name_69 WHERE result = "t 35-35"
CREATE TABLE INST, Here is a database schema( table schema);
What is the largest week that has t 35-35 as the result?It is not neccessary to use all the tables.
SELECT Second member FROM table WHERE First member = sir rowland hill, bt AND Second party = conservative
CREATE TABLE INST, Here is a database schema( table schema);
Who is the second member with first member Sir Rowland Hill, BT, and a conservative second party?.It is not neccessary to use all the tables.
SELECT result FROM table_name_85 WHERE opponent_number = "at 2 usc"
CREATE TABLE INST, Here is a database schema( table schema);
What was the result when the opponent was at 2 usc?It is not neccessary to use all the tables.
SELECT Round FROM table WHERE College = stanford
CREATE TABLE INST, Here is a database schema( table schema);
Which Round has a College of stanford?.It is not neccessary to use all the tables.
SELECT Save FROM table WHERE Attendance = 23,394
CREATE TABLE INST, Here is a database schema( table schema);
What is the save of the game that 23,394 people attended?.It is not neccessary to use all the tables.
SELECT runner_up FROM table_11214772_1 WHERE year = "2004" AND champion = "North Carolina State"
CREATE TABLE INST, Here is a database schema( table schema);
who is the runner-up where year is 2004 and champion is north carolina stateIt is not neccessary to use all the tables.
SELECT Complement FROM table WHERE Killed = 0 off 0 men AND Wounded = 0 off 0 men AND Unit = artillery corps
CREATE TABLE INST, Here is a database schema( table schema);
What was the Complement of Artillery Corps Units that had 0 off 0 men Killed or Wounded?.It is not neccessary to use all the tables.
SELECT count(*) FROM nuclear_power_plants WHERE ReactorType = "PHWR"
CREATE TABLE INST, Here is a database schema( nuclear power plants);
How many PHWR are there today?. It is not neccessary to use all the tables.
SELECT "Original air date" FROM table_28550 WHERE "Series #" = '15'
CREATE TABLE INST, Here is a database schema( table schema);
Name the original air date for series number 15It is not neccessary to use all the tables.
SELECT AVG(michelle) FROM table_name_39 WHERE discipline = "archery"
CREATE TABLE INST, Here is a database schema( table schema);
How did michelle do in archery?It is not neccessary to use all the tables.
SELECT MAX(3 AS rd_throw) FROM table_17265535_7 WHERE equation = "6 × 9² + 6 × 9 + 6"
CREATE TABLE INST, Here is a database schema( table schema);
If the equation is 6 × 9² + 6 × 9 + 6 what is the 3rd throw?It is not neccessary to use all the tables.
SELECT Customer_name, Customer_ID FROM Customers ORDER BY Customer_ID
CREATE TABLE INST, Here is a database schema( table schema);
List all the customers in increasing order of IDs by a bar chart.It is not neccessary to use all the tables.
SELECT "Date" FROM table_59974 WHERE "Home team" = 'crystal palace'
CREATE TABLE INST, Here is a database schema( table schema);
What date was the game when home team crystal palace played?It is not neccessary to use all the tables.
SELECT status FROM table_name_94 WHERE name = "agamemnon"
CREATE TABLE INST, Here is a database schema( table schema);
The boat named Agamemnon has what status?It is not neccessary to use all the tables.
SELECT Chassis FROM table WHERE Points = 13 AND Year = 1975 AND Entrant = scuderia citta del mille
CREATE TABLE INST, Here is a database schema( table schema);
Can you tell me the Chassis that has the Points of 13, and the Year of 1975, and the Entrant of scuderia citta del mille?.It is not neccessary to use all the tables.
SELECT Artist FROM table WHERE Genre = rock
CREATE TABLE INST, Here is a database schema( table schema);
Who is the artist of the rock song?.It is not neccessary to use all the tables.
SELECT COUNT(*) > 0 FROM procedures_icd WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'rt/left heart card cath') AND procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 54825) AND DATETIME(pro...
CREATE TABLE INST, Here is a database schema( table schema);
has patient 54825 undergone a rt/left heart card cath procedure until 1 year ago?It is not neccessary to use all the tables.
SELECT MAX(attendance) FROM table_10361453_2 WHERE record = "7-3"
CREATE TABLE INST, Here is a database schema( table schema);
The record of 7-3 had the largest attendance of what?It is not neccessary to use all the tables.
SELECT MAX(pick__number) FROM table_name_52 WHERE overall = 204
CREATE TABLE INST, Here is a database schema( table schema);
Name the most pick # for overall of 204It is not neccessary to use all the tables.
SELECT final_score FROM table_10548224_1 WHERE date_contested = "February 1, 2009"
CREATE TABLE INST, Here is a database schema( table schema);
What was the final score for the game that was contested on February 1 2009?It is not neccessary to use all the tables.
SELECT MAX District FROM table WHERE Location of court = Tolland
CREATE TABLE INST, Here is a database schema( table schema);
What district is the court located in Tolland?.It is not neccessary to use all the tables.
SELECT attack FROM table_name_71 WHERE source = "nciom"
CREATE TABLE INST, Here is a database schema( table schema);
What Attack has a Source of NCIOM?It is not neccessary to use all the tables.
SELECT "drivers" FROM table_203_161 WHERE "team" = 'perkins engineering' AND "drivers" <> 'larry perkins'
CREATE TABLE INST, Here is a database schema( table schema);
larry perkins and what other driver is under the team perkins engineering ?It is not neccessary to use all the tables.
SELECT AVG Code FROM table WHERE Regional County Municipality = matawinie AND Type = p AND Name = saint-damien
CREATE TABLE INST, Here is a database schema( table schema);
What is the code for Saint-Damien in Matawinie with a type p?.It is not neccessary to use all the tables.
SELECT home_team FROM table_name_70 WHERE away_team = "blackburn rovers"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Home team at the Blackburn Rovers Away game?It is not neccessary to use all the tables.
SELECT customer_name, COUNT(*) FROM Orders AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T2.customer_id
CREATE TABLE INST, Here is a database schema( table schema);
For each customer who has at least two orders, find the customer name and number of orders made. Show a pie chart.It is not neccessary to use all the tables.
SELECT Marks FROM table WHERE Season = 2005
CREATE TABLE INST, Here is a database schema( table schema);
How many marks did he get in 2005?.It is not neccessary to use all the tables.
SELECT location FROM table_11214772_2 WHERE year = 2007
CREATE TABLE INST, Here is a database schema( table schema);
Where was the final game played in 2007It is not neccessary to use all the tables.
SELECT COUNT(episode_no) FROM table_24399615_10 WHERE bbc_three_weekly_ranking = "N/A" AND cable_rank = "N/A"
CREATE TABLE INST, Here is a database schema( table schema);
Which episode had bbc ranking and canle ranking of n/a?It is not neccessary to use all the tables.
SELECT frequency FROM table_name_33 WHERE facility_id = 13598
CREATE TABLE INST, Here is a database schema( table schema);
Which Frequency has a Facility ID of 13598?It is not neccessary to use all the tables.
SELECT Date(s) Released FROM table WHERE Democratic Alternative = 1% AND Labour = 34%
CREATE TABLE INST, Here is a database schema( table schema);
Which date released had a Democratic Alternative value of 1% and Labour of 34%?.It is not neccessary to use all the tables.
SELECT date FROM table_name_63 WHERE attendance = "30,612"
CREATE TABLE INST, Here is a database schema( table schema);
Which Date has an Attendance of 30612?It is not neccessary to use all the tables.
SELECT hometown FROM table_name_47 WHERE name = "kyle love"
CREATE TABLE INST, Here is a database schema( table schema);
What hometown is Kyle love from?It is not neccessary to use all the tables.
SELECT Attendance FROM table WHERE Opponent = detroit lions
CREATE TABLE INST, Here is a database schema( table schema);
What attendance has detroit lions as the opponent?.It is not neccessary to use all the tables.
SELECT MAX Year FROM table WHERE Runner(s)-up = kathy whitworth
CREATE TABLE INST, Here is a database schema( table schema);
When was the most recent year that kathy whitworth was the runner-up?.It is not neccessary to use all the tables.
SELECT result FROM table_name_92 WHERE goal__number > 4
CREATE TABLE INST, Here is a database schema( table schema);
Name the result for goal # more than 4It is not neccessary to use all the tables.
SELECT SUM(rank) FROM table_name_58 WHERE nationality = "australia" AND points < 79
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the sum of rank for australia when points are less than 79It is not neccessary to use all the tables.
SELECT player FROM table_name_53 WHERE round = "1"
CREATE TABLE INST, Here is a database schema( table schema);
what player is playing on round 1It is not neccessary to use all the tables.
SELECT MIN Draws FROM table WHERE Wins < 12 AND Played < 30
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest amount of draws with less than 12 wins and less than 30 played?.It is not neccessary to use all the tables.
SELECT COUNT Final Rank FROM table WHERE Rank in FS = 3 AND Rank in SP > 4
CREATE TABLE INST, Here is a database schema( table schema);
How many skaters have a Rank in FS of 3, and a Rank in SP larger than 4?.It is not neccessary to use all the tables.
SELECT COUNT(mixed_doubles) FROM table_12164707_1 WHERE mens_singles = "Oliver Pongratz"
CREATE TABLE INST, Here is a database schema( table schema);
How many Mixed Doubles won when Oliver Pongratz won the Men's Singles?It is not neccessary to use all the tables.
SELECT MIN Points FROM table WHERE Player = stuart AND Extra points < 0
CREATE TABLE INST, Here is a database schema( table schema);
How many points did Stuart have when he had 0 extra points?.It is not neccessary to use all the tables.
SELECT Res. FROM table WHERE Event = rof 32: respect
CREATE TABLE INST, Here is a database schema( table schema);
Did he win or lose rof 32: respect?.It is not neccessary to use all the tables.
SELECT Surface FROM table WHERE Partner = vania king
CREATE TABLE INST, Here is a database schema( table schema);
What was the surface for the game that had a partner of vania king?.It is not neccessary to use all the tables.
SELECT high_assists FROM table_17311812_8 WHERE team = "Denver"
CREATE TABLE INST, Here is a database schema( table schema);
Who has the most assists on Denver?It is not neccessary to use all the tables.
SELECT result FROM table_name_53 WHERE first_elected = "1898"
CREATE TABLE INST, Here is a database schema( table schema);
When someone was first elected in 1898 what was the result?It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Home team = sunderland
CREATE TABLE INST, Here is a database schema( table schema);
what is the score when the home team is sunderland?.It is not neccessary to use all the tables.
SELECT MAX Pick FROM table WHERE College = texas a&i AND Overall < 28
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest pick of the player from texas a&i with an overall less than 28?.It is not neccessary to use all the tables.
SELECT date FROM table_name_46 WHERE outcome = "winner" AND opponents = "dinah pfizenmaier anna zaja"
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the date for dinah pfizenmaier anna zaja and winnerIt is not neccessary to use all the tables.
SELECT Assistant Dean of Men FROM table WHERE Assistant Dean of Women = autumn teele
CREATE TABLE INST, Here is a database schema( table schema);
Who was the Assistant Dean of Men when Autumn Teele was the Assistant Dean of Women?.It is not neccessary to use all the tables.
SELECT Written by FROM table WHERE No. in series = 19
CREATE TABLE INST, Here is a database schema( table schema);
Who wrote episode number 19 in the series?.It is not neccessary to use all the tables.
SELECT SUM(crowd) FROM table_name_57 WHERE home_team = "st kilda"
CREATE TABLE INST, Here is a database schema( table schema);
How many people attended games with st kilda as the home side?It is not neccessary to use all the tables.
SELECT Champions FROM table WHERE Year > 1999 AND Runners-up = changwon lg sakers
CREATE TABLE INST, Here is a database schema( table schema);
Who won after 1999 with changwon lg sakers as runners-up?.It is not neccessary to use all the tables.
SELECT Actor FROM table WHERE Duration = 61 years
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the actor with a duration of 61 years?.It is not neccessary to use all the tables.
SELECT "Spike" FROM table_62736 WHERE "2008 club" = 'karava'
CREATE TABLE INST, Here is a database schema( table schema);
Which spike has a 2008 club Karava?It is not neccessary to use all the tables.
SELECT MAX(aircraft_movements) FROM table_13836704_9 WHERE airport = "Liverpool"
CREATE TABLE INST, Here is a database schema( table schema);
what is the maximum aircraft movements with airport being liverpoolIt is not neccessary to use all the tables.
SELECT date FROM table_name_17 WHERE score = "5-2" AND loss = "sele (3-2)"
CREATE TABLE INST, Here is a database schema( table schema);
What date was the score 5-2 with a loss of sele (3-2)?It is not neccessary to use all the tables.
SELECT Date of injury FROM table WHERE Injury = Sustained posterior thigh strains in his left leg
CREATE TABLE INST, Here is a database schema( table schema);
What is the date of injury when the injury is sustained posterior thigh strains in his left leg?.It is not neccessary to use all the tables.
SELECT result FROM table_name_76 WHERE round < 7 AND opponent = "melbourne storm"
CREATE TABLE INST, Here is a database schema( table schema);
what is the result when the round is less than 7 and the opponent is melbourne storm?It is not neccessary to use all the tables.
SELECT outcome FROM table_name_40 WHERE score = "2–6, 1–6"
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the outcome of 2–6 1–6It is not neccessary to use all the tables.
SELECT COUNT(overall) FROM table_name_4 WHERE pick = 10 AND round < 8 AND position = "e" AND college = "tennessee"
CREATE TABLE INST, Here is a database schema( table schema);
How much Overall has a Pick of 10 and a Round smaller than 8 and a Position of e and a College of tennessee?It is not neccessary to use all the tables.
SELECT innings FROM table_28846752_5 WHERE bbi = "4/26"
CREATE TABLE INST, Here is a database schema( table schema);
how many innings had bbi 4/26?It is not neccessary to use all the tables.
SELECT title FROM table_2342078_5 WHERE written_by = "Harry Winkler"
CREATE TABLE INST, Here is a database schema( table schema);
What's the title of the episode written by Harry Winkler?It is not neccessary to use all the tables.
SELECT Championship FROM table WHERE Surface = clay AND Opponent in the final = vitas gerulaitis
CREATE TABLE INST, Here is a database schema( table schema);
What is the Championship with Vitas Gerulaitis as Opponent in the final in a match on Clay Surface?.It is not neccessary to use all the tables.
SELECT rowers FROM table_name_31 WHERE time = "6:39.49"
CREATE TABLE INST, Here is a database schema( table schema);
Who are the Rowers with a Time of 6:39.49?It is not neccessary to use all the tables.
SELECT "Winning Team" FROM table_59632 WHERE "Round" = '3'
CREATE TABLE INST, Here is a database schema( table schema);
Who was the winning team for round 3?It is not neccessary to use all the tables.
SELECT SUM(margin) FROM table_name_40 WHERE country = "canada"
CREATE TABLE INST, Here is a database schema( table schema);
What is canada's margin?It is not neccessary to use all the tables.
SELECT Home team FROM table WHERE Home team score = 14.12 (96)
CREATE TABLE INST, Here is a database schema( table schema);
Which home team has a home team 14.12 (96)?.It is not neccessary to use all the tables.
SELECT COUNT(a_external__cm_2__) FROM table_26967904_2 WHERE chambering = ".338 Lapua Magnum"
CREATE TABLE INST, Here is a database schema( table schema);
How many external (cm 2 ) are there for the .338 lapua magnum chambering?It is not neccessary to use all the tables.
SELECT Team 1 FROM table WHERE Team 2 = hafia fc
CREATE TABLE INST, Here is a database schema( table schema);
What team played against Hafia FC (team 2)?.It is not neccessary to use all the tables.
SELECT Surface FROM table WHERE Opponent in the final = steven diez
CREATE TABLE INST, Here is a database schema( table schema);
What surface was the tournament played on against Steven Diez?.It is not neccessary to use all the tables.
SELECT SUM(lost) FROM table_name_20 WHERE points < 3 AND drawn > 0
CREATE TABLE INST, Here is a database schema( table schema);
How many losses have points less than 3 with a drawn greater than 0?It is not neccessary to use all the tables.
SELECT COUNT Number built FROM table WHERE Chassis code = w108.057
CREATE TABLE INST, Here is a database schema( table schema);
What's the total number built with a chassis code of w108.057?.It is not neccessary to use all the tables.
SELECT SUM(points) FROM table_name_17 WHERE jury > 6 AND artist = "zhenya rasskazova" AND draw > 9
CREATE TABLE INST, Here is a database schema( table schema);
Jury larger than 6 and a Artist of zhenya rasskazova and a Draw larger than 9 had what sum of points?It is not neccessary to use all the tables.
SELECT score FROM table_name_77 WHERE game > 4 AND series = "3-2"
CREATE TABLE INST, Here is a database schema( table schema);
What is the score for the game larger than 4 in series 3-2?It is not neccessary to use all the tables.
SELECT MAX Season FROM table WHERE Winner = Dado Dolabella
CREATE TABLE INST, Here is a database schema( table schema);
In what season was the winner Dado Dolabella?.It is not neccessary to use all the tables.
SELECT runner_up FROM table_name_62 WHERE name = "pacific life open" AND year = "2006"
CREATE TABLE INST, Here is a database schema( table schema);
Who was runner-up in the 2006 Pacific Life Open?It is not neccessary to use all the tables.
SELECT MAX(rank) FROM table_1682026_6 WHERE assets__billion_$_ = "1,715.8"
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest rank of a company that has 1715.8 billion in assets?It is not neccessary to use all the tables.
SELECT AVG Points FROM table WHERE Touchdowns = 4 AND Field goals > 0
CREATE TABLE INST, Here is a database schema( table schema);
What is the average number of points for players with 4 touchdowns and more than 0 field goals?.It is not neccessary to use all the tables.
SELECT AVG Year FROM table WHERE Saar = fk pirmasens AND Hessen = wormatia worms
CREATE TABLE INST, Here is a database schema( table schema);
What is the average year for a Saar of FK Pirmasens and Hessen of Wormatia Worms?.It is not neccessary to use all the tables.
SELECT Home FROM table WHERE Date = april 2
CREATE TABLE INST, Here is a database schema( table schema);
What is the Home team on April 2?.It is not neccessary to use all the tables.
SELECT cast FROM table_2570269_2 WHERE episode__number = "2-03"
CREATE TABLE INST, Here is a database schema( table schema);
For episode number 2-03 what are the names of the cast?It is not neccessary to use all the tables.
SELECT 08 AS _pts FROM table_22011138_7 WHERE team = "Rubio Ñú"
CREATE TABLE INST, Here is a database schema( table schema);
If the team is Rubio ñú what is the 08 points?It is not neccessary to use all the tables.
SELECT series_ep FROM table_name_45 WHERE netflix = "s04e21"
CREATE TABLE INST, Here is a database schema( table schema);
Which series episode has a netflix figure of s04e21?It is not neccessary to use all the tables.
SELECT release_date FROM table WHERE code_name = "Aoba"
CREATE TABLE INST, Here is a database schema( table schema);
What is the release date if the code name is Aoba?It is not neccessary to use all the tables.
SELECT MAX(rank) FROM table_name_13 WHERE silver = 4 AND bronze < 3
CREATE TABLE INST, Here is a database schema( table schema);
Name the highest rank when silver is 4 and bronze is less than 3It is not neccessary to use all the tables.
SELECT AVG(points) FROM table_name_14 WHERE chassis = "stevens" AND year < 1950
CREATE TABLE INST, Here is a database schema( table schema);
Name the average points for chassis of stevens and year less than 1950It is not neccessary to use all the tables.