question
stringlengths 19
162
| table_info
stringlengths 39
951
| sql_query
stringlengths 24
181
|
---|---|---|
When did the consort who had talal i as a spouse die?
|
CREATE TABLE table_name_98 (
died VARCHAR,
spouse_to VARCHAR
)
|
SELECT died FROM table_name_98 WHERE spouse_to LIKE "%talal i%"
|
What is the largest pick in round 8?
|
CREATE TABLE table_77912 (
"Round" real,
"Pick" real,
"Name" text,
"Position" text,
"School" text
)
|
SELECT MAX("Pick") FROM table_77912 WHERE "Round" = 8
|
What's the HC for the standard with NO x of 7.0 g/kWh?
|
CREATE TABLE table_2780146_6 (
hc__g_kwh_ VARCHAR,
no_x__g_kwh_ VARCHAR
)
|
SELECT hc__g_kwh_ FROM table_2780146_6 WHERE no_x__g_kwh_ LIKE "%7.0%"
|
What attendance has detroit lions as the opponent?
|
CREATE TABLE table_name_14 (
attendance VARCHAR,
opponent VARCHAR
)
|
SELECT attendance FROM table_name_14 WHERE opponent LIKE "%detroit lions%"
|
Which Season has an Away of 1 2?
|
CREATE TABLE table_50026 (
"Season" text,
"League" text,
"Teams" text,
"Home" text,
"Away" text
)
|
SELECT "Season" FROM table_50026 WHERE "Away" LIKE '%1–2%'
|
What is the time for Alan Oversby?
|
CREATE TABLE table_name_94 (
time VARCHAR,
rider VARCHAR
)
|
SELECT time FROM table_name_94 WHERE rider LIKE "%alan oversby%"
|
how many points did the dolphins score against the buffalo bills total ?
|
CREATE TABLE table_204_9 (
id number,
"week" number,
"date" text,
"opponent" text,
"result" text,
"attendance" number
)
|
SELECT SUM("result") FROM table_204_9 WHERE "opponent" LIKE '%buffalo bills%'
|
Which position was selected for by the Toronto Maple Leafs?
|
CREATE TABLE table_4037 (
"Pick #" real,
"Player" text,
"Position" text,
"Nationality" text,
"NHL team" text,
"College/junior/club team" text
)
|
SELECT "Position" FROM table_4037 WHERE "NHL team" LIKE '%toronto maple leafs%'
|
In which position did Steve play first?
|
CREATE TABLE table_37389 (
"Surname" text,
"First" text,
"D.O.B." text,
"Bats" text,
"Throws" text,
"Position" text
)
|
SELECT "Position" FROM table_37389 WHERE "First" LIKE '%steve%'
|
Who received the bronze medal in the 2000 Sydney games?
|
CREATE TABLE table_72043 (
"Medal" text,
"Name" text,
"Games" text,
"Sport" text,
"Event" text
)
|
SELECT "Name" FROM table_72043 WHERE "Medal" LIKE '%bronze%' AND "Games" LIKE '%2000 sydney%'
|
Who went on a rampage in Baghdad?
|
CREATE TABLE table_name_85 (
perpetrator VARCHAR,
location VARCHAR
)
|
SELECT perpetrator FROM table_name_85 WHERE location LIKE "%baghdad%"
|
What is the Works Number that has a Number of 153 in 1916?
|
CREATE TABLE table_name_39 (
works_number VARCHAR,
date VARCHAR,
number VARCHAR
)
|
SELECT works_number FROM table_name_39 WHERE date LIKE "%1916%" AND number LIKE "%153%"
|
When saif saaeed shaheen (qat) is the saif saaeed shaheen ( qat ) what is the world record?
|
CREATE TABLE table_23988726_2 (
world_record VARCHAR
)
|
SELECT world_record FROM table_23988726_2 WHERE world_record LIKE "%saif_saaeed_shaheen___qat__%"
|
What was the final place came for the performance of Erlend Bratland?
|
CREATE TABLE table_23429629_4 (
place_came VARCHAR,
artist VARCHAR
)
|
SELECT place_came FROM table_23429629_4 WHERE artist LIKE "%erlend bratland%"
|
Name the reason for change for jonathan jennings
|
CREATE TABLE table_225094_4 (
reason_for_change VARCHAR,
successor VARCHAR
)
|
SELECT COUNT(reason_for_change) FROM table_225094_4 WHERE successor LIKE "%jonathan jennings%"
|
what are all the records with a score is w 98 91
|
CREATE TABLE table_11964047_7 (
record VARCHAR,
score VARCHAR
)
|
SELECT record FROM table_11964047_7 WHERE score LIKE "%w 98–91%"
|
What was the score of the game with the Etobicoke Kangaroos as the home team?
|
CREATE TABLE table_43139 (
"Date" text,
"Time" text,
"Home" text,
"Away" text,
"Score" text,
"Ground" text
)
|
SELECT "Score" FROM table_43139 WHERE "Home" LIKE '%etobicoke kangaroos%'
|
Which Start has 8 Tries and 0 Convs?
|
CREATE TABLE table_name_58 (
start VARCHAR,
tries VARCHAR,
conv VARCHAR
)
|
SELECT start FROM table_name_58 WHERE tries LIKE "%8%" AND conv LIKE "%0%"
|
How many seats had a 41.2% share of votes?
|
CREATE TABLE table_9550 (
"Election" real,
"Number of NDC votes" text,
"Share of votes" text,
"Seats" real,
"Outcome of election" text
)
|
SELECT "Seats" FROM table_9550 WHERE "Share of votes" LIKE '%41.2%'
|
Which Team 1 has an aggregate score of 1-1 1?
|
CREATE TABLE table_70501 (
"Team 1" text,
"Agg." text,
"Team 2" text,
"1st leg" text,
"2nd leg" text
)
|
SELECT "Team 1" FROM table_70501 WHERE "Agg." LIKE '%1-1 1%'
|
Who ran unsuccessfully against Bill Hefner?
|
CREATE TABLE table_1341522_36 (
opponent VARCHAR,
incumbent VARCHAR
)
|
SELECT opponent FROM table_1341522_36 WHERE incumbent LIKE "%bill hefner%"
|
What was the sensor with a resolution of 355x288 for a Naturalpoint Trackir 3?
|
CREATE TABLE table_37521 (
"Camera" text,
"Sensor resolution" text,
"Sensor" text,
"Output" text,
"CPU usage" text,
"IR LEDs" text
)
|
SELECT "Sensor" FROM table_37521 WHERE "Sensor resolution" LIKE '%355x288%' AND "Camera" LIKE '%naturalpoint trackir 3%'
|
When is the first broadcast for episodes where Rufus's guest is Jack Whitehall?
|
CREATE TABLE table_19930660_3 (
first_broadcast VARCHAR,
rufus_guest VARCHAR
)
|
SELECT first_broadcast FROM table_19930660_3 WHERE rufus_guest LIKE '%jack whitehall%'
|
What School has Colors of navy blue orange?
|
CREATE TABLE table_name_17 (
school VARCHAR,
colors VARCHAR
)
|
SELECT school FROM table_name_17 WHERE colors LIKE "%navy blue orange%"
|
What is the winner in event number 15h?
|
CREATE TABLE table_2535 (
"Dateca" text,
"Event #" text,
"Event" text,
"Winner" text,
"Prize" text,
"Entries" text,
"Prize Pool" text,
"Elapsed Time" text
)
|
SELECT "Winner" FROM table_2535 WHERE "Event #" LIKE '%15h%'
|
What was the score for Leo Diegel?
|
CREATE TABLE table_name_63 (
score VARCHAR,
player VARCHAR
)
|
SELECT score FROM table_name_63 WHERE player LIKE "%leo diegel%"
|
Who got the loss on the game that ended in a 52-36 record?
|
CREATE TABLE table_name_22 (
loss VARCHAR,
record VARCHAR
)
|
SELECT loss FROM table_name_22 WHERE record LIKE "%52-36%"
|
How many school colors is there for the main campus location of highland?
|
CREATE TABLE table_507 (
"Institution" text,
"Main Campus Location" text,
"Founded" real,
"Mascot" text,
"School Colors" text
)
|
SELECT COUNT("School Colors") FROM table_507 WHERE "Main Campus Location" LIKE '%highland%'
|
What is the Pick number of the Player from Syracuse?
|
CREATE TABLE table_name_76 (
pick VARCHAR,
college VARCHAR
)
|
SELECT pick FROM table_name_76 WHERE college LIKE "%syracuse%"
|
When was the audio book with target number 069 69 released?
|
CREATE TABLE table_23577 (
"Story #" real,
"Target #" text,
"Title" text,
"Author" text,
"Reader" text,
"Format" text,
"Company" text,
"Release Date" text,
"Notes" text
)
|
SELECT "Release Date" FROM table_23577 WHERE "Target #" LIKE '%069 69%'
|
how many times was it the district illinois 18?
|
CREATE TABLE table_18376 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
)
|
SELECT COUNT("Candidates") FROM table_18376 WHERE "District" LIKE '%illinois 18%'
|
How many points does Shawn Mceachern with less than 79 goals?
|
CREATE TABLE table_66864 (
"Player" text,
"Years" text,
"Goals" real,
"Assists" real,
"Points" real
)
|
SELECT SUM("Points") FROM table_66864 WHERE "Player" LIKE '%shawn mceachern%' AND "Goals" < 79
|
After the year 2011, who was the youngest nominee?
|
CREATE TABLE table_54720 (
"Superlative" text,
"Actress" text,
"Record Set" text,
"Year" real,
"Notes" text
)
|
SELECT "Record Set" FROM table_54720 WHERE "Year" > 2011 AND "Superlative" LIKE '%youngest nominee%'
|
What was the other team in game 11?
|
CREATE TABLE table_27722408_6 (
team VARCHAR,
game VARCHAR
)
|
SELECT team FROM table_27722408_6 WHERE game LIKE '%11%'
|
What location contains a school that has an enrollment of 2686?
|
CREATE TABLE table_1973729_1 (
location VARCHAR,
enrollment VARCHAR
)
|
SELECT location FROM table_1973729_1 WHERE enrollment = '2686'
|
How many netflow version are there when the vendor and type is enterasys switches?
|
CREATE TABLE table_1206114_2 (
netflow_version VARCHAR,
vendor_and_type VARCHAR
)
|
SELECT COUNT(netflow_version) FROM table_1206114_2 WHERE vendor_and_type LIKE "%enterasys switches%"
|
Which driver's grid was 24?
|
CREATE TABLE table_name_10 (
driver VARCHAR,
grid VARCHAR
)
|
SELECT driver FROM table_name_10 WHERE grid LIKE '%24%'
|
What was the team that scored 122 points?
|
CREATE TABLE table_17968274_2 (
team VARCHAR,
points VARCHAR
)
|
SELECT team FROM table_17968274_2 WHERE points LIKE '%122%'
|
How many attended game(s) against the boston patriots?
|
CREATE TABLE table_17779448_1 (
attendance VARCHAR,
opponent VARCHAR
)
|
SELECT attendance FROM table_17779448_1 WHERE opponent LIKE "%boston patriots%"
|
Which Lost is the highest one that has a Season of 2001 02, and Points larger than 47?
|
CREATE TABLE table_name_58 (
lost INTEGER,
season VARCHAR,
points VARCHAR
)
|
SELECT MAX(lost) FROM table_name_58 WHERE season LIKE "%2001–02%" AND points > "47"
|
what is the total number of years for singles by philips label ?
|
CREATE TABLE table_204_672 (
id number,
"year" number,
"title" text,
"label" text,
"uk singles chart" number,
"u.s. billboard hot 100 chart" number
)
|
SELECT COUNT("year") FROM table_204_672 WHERE "label" LIKE '%philips%'
|
What team 2 has lokomotiva as team 1?
|
CREATE TABLE table_name_16 (
team_2 VARCHAR,
team_1 VARCHAR
)
|
SELECT team_2 FROM table_name_16 WHERE team_1 LIKE "%lokomotiva%"
|
Where did Hawthorn play as home team?
|
CREATE TABLE table_name_29 (
venue VARCHAR,
home_team VARCHAR
)
|
SELECT venue FROM table_name_29 WHERE home_team LIKE "%hawthorn%"
|
What team did the home team play on September 4?
|
CREATE TABLE table_6101 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
)
|
SELECT "Opponent" FROM table_6101 WHERE "Date" LIKE '%september 4%'
|
What's the quarterfinals when the rank was bronze?
|
CREATE TABLE table_name_79 (
quarterfinals VARCHAR,
rank VARCHAR
)
|
SELECT quarterfinals FROM table_name_79 WHERE rank LIKE "%bronze%"
|
What is the average yards for Jimmie Giles in a game larger than 15 and reception larger than 2?
|
CREATE TABLE table_49097 (
"Player" text,
"Games" real,
"Reception" real,
"Yards" real,
"Long" real
)
|
SELECT AVG("Yards") FROM table_49097 WHERE "Games" > 15 AND "Reception" > 2 AND "Player" LIKE '%jimmie giles%'
|
What is the name of the player with t6 as his place and a country of United states?
|
CREATE TABLE table_name_85 (
player VARCHAR,
place VARCHAR,
country VARCHAR
)
|
SELECT player FROM table_name_85 WHERE place LIKE "%t6%" AND country LIKE "%united states%"
|
What is Detective Donald William Schneider's Cause of death?
|
CREATE TABLE table_name_37 (
cause_of_death VARCHAR,
rank VARCHAR,
name VARCHAR
)
|
SELECT cause_of_death FROM table_name_37 WHERE rank LIKE "%detective%" AND name LIKE "%donald william schneider%"
|
What is the surface on 21 june 1993?
|
CREATE TABLE table_77181 (
"Outcome" text,
"Date" text,
"Championship" text,
"Surface" text,
"Opponent" text,
"Score" text
)
|
SELECT "Surface" FROM table_77181 WHERE "Date" LIKE '%21 june 1993%'
|
which player played on Team Hamilton?
|
CREATE TABLE table_50364 (
"Pick #" real,
"CFL Team" text,
"Player" text,
"Position" text,
"College" text
)
|
SELECT "Player" FROM table_50364 WHERE "CFL Team" LIKE '%hamilton%'
|
How many faculty members have 20 years of experience?
|
CREATE TABLE table_21673 (
"SNO" real,
"College code" text,
"Faculty name" text,
"Designation" text,
"Qualification" text,
"Department" text,
"Experience" text
)
|
SELECT COUNT("Designation") FROM table_21673 WHERE "Experience" LIKE '%20 years%'
|
What is the Call Sign of the Frequency by Owner CKUA Radio Foundation?
|
CREATE TABLE table_name_33 (
call_sign VARCHAR,
owner VARCHAR
)
|
SELECT call_sign FROM table_name_33 WHERE owner LIKE "%ckua radio foundation%"
|
What design was acquired in 1875?
|
CREATE TABLE table_name_32 (
design VARCHAR,
acquired VARCHAR
)
|
SELECT design FROM table_name_32 WHERE acquired LIKE '%1875%'
|
What is Works Number, when Type is RS-11, and when Number is 61?
|
CREATE TABLE table_name_7 (
works_number VARCHAR,
type VARCHAR,
number VARCHAR
)
|
SELECT works_number FROM table_name_7 WHERE type LIKE "%rs-11%" AND number LIKE "%61%"
|
For how many years was the location at Beijing?
|
CREATE TABLE table_38122 (
"Year" real,
"Location" text,
"Gold" text,
"Silver" text,
"Bronze" text
)
|
SELECT SUM("Year") FROM table_38122 WHERE "Location" LIKE '%beijing%'
|
what is the lowest overall when the pick is 20?
|
CREATE TABLE table_44648 (
"Round" real,
"Pick" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
)
|
SELECT MIN("Overall") FROM table_44648 WHERE "Pick" = 20
|
How many people were in the crowd on the day the home team scored 7.10 (52)?
|
CREATE TABLE table_52965 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
|
SELECT "Crowd" FROM table_52965 WHERE "Home team score" LIKE '%7.10 (52)%'
|
What is the smallest point amount for years prior to 1958 when the class is 350cc?
|
CREATE TABLE table_name_91 (
points INTEGER,
year VARCHAR,
class VARCHAR
)
|
SELECT MIN(points) FROM table_name_91 WHERE year < '1958' AND class LIKE '%350cc%'
|
What is the score for Australia with a place of 4?
|
CREATE TABLE table_name_87 (
score VARCHAR,
country VARCHAR,
place VARCHAR
)
|
SELECT score FROM table_name_87 WHERE country LIKE "%australia%" AND place LIKE "%4%"
|
WHAT COUNTRY HAS A TO PAR OF +1, WITH WOODY AUSTIN?
|
CREATE TABLE table_44955 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
|
SELECT "Country" FROM table_44955 WHERE "To par" LIKE '%+1%' AND "Player" LIKE '%woody austin%'
|
Find the capacity and gender type of the dorm whose name has substring Donor .
|
CREATE TABLE dorm (
student_capacity VARCHAR,
gender VARCHAR,
dorm_name VARCHAR
)
|
SELECT student_capacity, gender FROM dorm WHERE dorm_name LIKE '%donor%'
|
Which method had a time of 0:46?
|
CREATE TABLE table_45296 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
)
|
SELECT "Method" FROM table_45296 WHERE "Time" LIKE '%0:46%'
|
Which units are commanded by Lieutenant Colonel Francis Hepburn?
|
CREATE TABLE table_11793221_2 (
unit VARCHAR,
commander VARCHAR
)
|
SELECT unit FROM table_11793221_2 WHERE commander LIKE "%lieutenant colonel francis hepburn%"
|
What's the name of the team that went 113.316mph?
|
CREATE TABLE table_55330 (
"Rank" real,
"Rider" text,
"Team" text,
"Speed" text,
"Time" text
)
|
SELECT "Team" FROM table_55330 WHERE "Speed" LIKE '%113.316mph%'
|
When was originally aired the episode with an audience of 1.57 million us viewers?
|
CREATE TABLE table_28081876_6 (
original_air_date VARCHAR,
us_viewers__millions_ VARCHAR
)
|
SELECT original_air_date FROM table_28081876_6 WHERE us_viewers__millions_ LIKE "%1.57%"
|
Find the number of users in each role.
|
CREATE TABLE users (
role_code VARCHAR
)
|
SELECT COUNT(*), role_code FROM users GROUP BY role_code
|
Name the least silver when gold is less than 0
|
CREATE TABLE table_name_41 (
silver INTEGER,
gold INTEGER
)
|
SELECT MIN(silver) FROM table_name_41 WHERE gold < 0
|
How many number of screenings have an opening film of the journey of vaan nguyen?
|
CREATE TABLE table_18220102_1 (
number_of_screening VARCHAR,
opening_film VARCHAR
)
|
SELECT COUNT(number_of_screening) FROM table_18220102_1 WHERE opening_film LIKE "%the journey of vaan nguyen%"
|
List the opposing team on february 15, 2003.
|
CREATE TABLE table_26360571_2 (
opponent VARCHAR,
date VARCHAR
)
|
SELECT opponent FROM table_26360571_2 WHERE date LIKE "%february 15, 2003%"
|
What city is ranked greater than 6, and the airport is St. Petersburg/Clearwater (PIE)
|
CREATE TABLE table_45905 (
"Rank" real,
"City" text,
"Airport" text,
"Passengers" real,
"Carriers" text
)
|
SELECT "City" FROM table_45905 WHERE "Rank" > 6 AND "Airport" LIKE '%st. petersburg/clearwater (pie)%'
|
Who is the winning driver of the race with no race as the winning manufacturer?
|
CREATE TABLE table_74936 (
"Circuit" text,
"Date" text,
"Pole position" text,
"Fastest Lap" text,
"Winning driver" text,
"Winning team" text,
"Winning manufacturer" text
)
|
SELECT "Winning driver" FROM table_74936 WHERE "Winning manufacturer" LIKE '%no race%'
|
Which Year has Playoffs which did not qualify?
|
CREATE TABLE table_name_94 (
year INTEGER,
playoffs VARCHAR
)
|
SELECT AVG(year) FROM table_name_94 WHERE playoffs LIKE "%did not qualify%"
|
What is the green house made of?
|
CREATE TABLE table_11464746_1 (
composition VARCHAR,
colours VARCHAR
)
|
SELECT composition FROM table_11464746_1 WHERE colours LIKE '%green%'
|
what's the district with incumbent being john e. miller
|
CREATE TABLE table_1342331_5 (
district VARCHAR,
incumbent VARCHAR
)
|
SELECT district FROM table_1342331_5 WHERE incumbent LIKE "%john e. miller%"
|
What Rider had a Time of 1:01.50.57?
|
CREATE TABLE table_name_46 (
rider VARCHAR,
time VARCHAR
)
|
SELECT rider FROM table_name_46 WHERE time LIKE "%1:01.50.57%"
|
Which Game has an Opponent of @ washington wizards?
|
CREATE TABLE table_name_13 (
game VARCHAR,
opponent VARCHAR
)
|
SELECT game FROM table_name_13 WHERE opponent LIKE '%@ washington wizards%'
|
what is the highest drawn when played is more than 14?
|
CREATE TABLE table_name_79 (
drawn INTEGER,
played INTEGER
)
|
SELECT MAX(drawn) FROM table_name_79 WHERE played > 14
|
What is 2011, when Tournament is 'Year-End Ranking'?
|
CREATE TABLE table_62441 (
"Tournament" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
)
|
SELECT "2011" FROM table_62441 WHERE "Tournament" LIKE '%year-end ranking%'
|
When the role is role what was the status?
|
CREATE TABLE table_name_14 (
status VARCHAR
)
|
SELECT status FROM table_name_14 WHERE "role" LIKE '%role%'
|
Name the opponent for week of 2
|
CREATE TABLE table_name_6 (
opponent VARCHAR,
week VARCHAR
)
|
SELECT opponent FROM table_name_6 WHERE week LIKE '%2%'
|
What Nickname has a Location of Southern River?
|
CREATE TABLE table_name_82 (
nickname VARCHAR,
location VARCHAR
)
|
SELECT nickname FROM table_name_82 WHERE location LIKE "%southern river%"
|
What is the sum of the points of the club with more than 34 played?
|
CREATE TABLE table_name_68 (
points INTEGER,
played INTEGER
)
|
SELECT SUM(points) FROM table_name_68 WHERE played > 34
|
What position did Lamar Green play?
|
CREATE TABLE table_11545282_7 (
position VARCHAR,
player VARCHAR
)
|
SELECT position FROM table_11545282_7 WHERE player LIKE "%lamar green%"
|
What's the slalom when the average time was greater than 99.25?
|
CREATE TABLE table_43774 (
"Place" real,
"Competitor" text,
"Downhill" real,
"Slalom" real,
"Average" real
)
|
SELECT AVG("Slalom") FROM table_43774 WHERE "Average" > 99.25
|
Which Opened is the highest one that has a Themed Area of aerial park, and a Manufacturer of zamperla?
|
CREATE TABLE table_name_76 (
opened INTEGER,
themed_area VARCHAR,
manufacturer VARCHAR
)
|
SELECT MAX(opened) FROM table_name_76 WHERE themed_area LIKE '%aerial park%' AND manufacturer LIKE '%zamperla%'
|
Who played as the away team when Essendon was the home team?
|
CREATE TABLE table_name_85 (
away_team VARCHAR,
home_team VARCHAR
)
|
SELECT away_team FROM table_name_85 WHERE home_team LIKE "%essendon%"
|
What was the Open Cup results for the year 2003?
|
CREATE TABLE table_2402864_1 (
open_cup VARCHAR,
year VARCHAR
)
|
SELECT open_cup FROM table_2402864_1 WHERE year LIKE '%2003%'
|
Who was the winning pitcher on june 25?
|
CREATE TABLE table_12125069_2 (
winning_pitcher VARCHAR,
date VARCHAR
)
|
SELECT winning_pitcher FROM table_12125069_2 WHERE date LIKE "%june 25%"
|
Who are the local hosts for the United States in years earlier than 2007?
|
CREATE TABLE table_name_86 (
local_host_s_ VARCHAR,
country VARCHAR,
year VARCHAR
)
|
SELECT local_host_s_ FROM table_name_86 WHERE country LIKE '%united states%' AND year < '2007'
|
How many wins did Andrew Ranger have?
|
CREATE TABLE table_23239946_3 (
wins VARCHAR,
driver VARCHAR
)
|
SELECT COUNT(wins) FROM table_23239946_3 WHERE driver LIKE "%andrew ranger%"
|
What is every location for the date of March 20?
|
CREATE TABLE table_23486853_8 (
location VARCHAR,
date VARCHAR
)
|
SELECT location FROM table_23486853_8 WHERE date LIKE "%march 20%"
|
When did the loan that Ended on 15 January Start?
|
CREATE TABLE table_name_60 (
started VARCHAR,
ended VARCHAR
)
|
SELECT started FROM table_name_60 WHERE ended LIKE "%15 january%"
|
List the distinct region of clubs in ascending alphabetical order.
|
CREATE TABLE club (
Region VARCHAR
)
|
SELECT DISTINCT Region FROM club ORDER BY Region
|
Name the total number of founded for public and 780 enrollment
|
CREATE TABLE table_28508 (
"Institution" text,
"Nickname" text,
"Location" text,
"Founded" real,
"Type" text,
"Enrollment" text,
"Current Conference" text
)
|
SELECT COUNT("Founded") FROM table_28508 WHERE "Type" LIKE '%public%' AND "Enrollment" LIKE '%780%'
|
Who was the away team when the attendance was 7,891?
|
CREATE TABLE table_name_64 (
away_team VARCHAR,
attendance VARCHAR
)
|
SELECT away_team FROM table_name_64 WHERE attendance LIKE "%7,891%"
|
Who was the director for the Episode number in season 10a?
|
CREATE TABLE table_2701851_5 (
directed_by VARCHAR,
no_in_season VARCHAR
)
|
SELECT directed_by FROM table_2701851_5 WHERE no_in_season LIKE "%10a%"
|
What is the time when the opponent is phil collins?
|
CREATE TABLE table_68339 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
)
|
SELECT "Time" FROM table_68339 WHERE "Opponent" LIKE '%phil collins%'
|
In which week was the team record 7 2?
|
CREATE TABLE table_24481478_1 (
week INTEGER,
team_record VARCHAR
)
|
SELECT MIN(week) FROM table_24481478_1 WHERE team_record LIKE "%7–2%"
|
what is the least silver when gold is 0?
|
CREATE TABLE table_name_93 (
silver INTEGER,
gold INTEGER
)
|
SELECT MIN(silver) FROM table_name_93 WHERE gold < 0
|
Name the mccain % for dukes
|
CREATE TABLE table_15929156_3 (
mccain__percentage VARCHAR,
county VARCHAR
)
|
SELECT mccain__percentage FROM table_15929156_3 WHERE county LIKE "%dukes%"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.