sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT COUNT(writer) FROM table_20345624_2 WHERE original_airdate = "15 July 1967"
CREATE TABLE INST, Here is a database schema( table schema);
Name the number of writers for airdate of 15 july 1967It is not neccessary to use all the tables.
SELECT tyre FROM table_name_35 WHERE driver = "pedro de la rosa"
CREATE TABLE INST, Here is a database schema( table schema);
Which tyre is on the car driven by Pedro de la Rosa?It is not neccessary to use all the tables.
SELECT Call sign FROM table WHERE ERP W = 222
CREATE TABLE INST, Here is a database schema( table schema);
What is the call sign with a 222 erp w?.It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Record = 18-20
CREATE TABLE INST, Here is a database schema( table schema);
What was the score of the game when the record was 18-20?.It is not neccessary to use all the tables.
SELECT COUNT(vacator) FROM table_2417340_3 WHERE date_of_successors_formal_installation = "June 22, 1868"
CREATE TABLE INST, Here is a database schema( table schema);
List the number of vacators when successors were formally installed on June 22, 1868.It is not neccessary to use all the tables.
SELECT COUNT(candidates) FROM table_1341586_19 WHERE result = "Retired to run for U. S. Senate Republican hold"
CREATE TABLE INST, Here is a database schema( table schema);
how many candidates with result being retired to run for u. s. senate republican holdIt is not neccessary to use all the tables.
SELECT Orthodoxy FROM table WHERE × = Wehdat
CREATE TABLE INST, Here is a database schema( table schema);
What is orthodoxy when x is wehdat?.It is not neccessary to use all the tables.
SELECT COUNT No. in series FROM table WHERE Title = "Coop de Grace"
CREATE TABLE INST, Here is a database schema( table schema);
how many times does the episode called "coop de grace" appear .It is not neccessary to use all the tables.
SELECT High rebounds FROM table WHERE Game = 1
CREATE TABLE INST, Here is a database schema( table schema);
Who was the high rebounder on game 1?.It is not neccessary to use all the tables.
SELECT college_junior_club_team__league_ FROM table_name_99 WHERE player = "john westin"
CREATE TABLE INST, Here is a database schema( table schema);
What club does John Westin play for?It is not neccessary to use all the tables.
SELECT MIN(attendance) FROM table_name_1 WHERE date = "may 6"
CREATE TABLE INST, Here is a database schema( table schema);
Name the least attendance for may 6It is not neccessary to use all the tables.
SELECT AVG(points) FROM table_name_4 WHERE engine = "climax straight-4" AND year < 1958
CREATE TABLE INST, Here is a database schema( table schema);
What is the average Points when the engine was a climax straight-4 earlier than 1958?It is not neccessary to use all the tables.
SELECT SUM(fastest_laps) FROM table_name_2 WHERE poles = 0 AND podiums = 0 AND seasons = "1995"
CREATE TABLE INST, Here is a database schema( table schema);
What's the fastest laps during the 1995 season having poles & podiums at 0?It is not neccessary to use all the tables.
SELECT Time FROM table WHERE Year > 2011 AND Event = 800 freestyle relay
CREATE TABLE INST, Here is a database schema( table schema);
What is Time, when Year is greater than 2011, and when Event is "800 Freestyle Relay"?.It is not neccessary to use all the tables.
SELECT SUM(byes) FROM table_name_27 WHERE central_murray = "woorineen" AND losses > 13
CREATE TABLE INST, Here is a database schema( table schema);
What is the byes for Woorineen when losses are more than 13?It is not neccessary to use all the tables.
SELECT COUNT(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T1.firstname = "CHRISSY" AND T1.lastname = "NABOZNY"
CREATE TABLE INST, Here is a database schema( table schema);
How many teachers does the student named CHRISSY NABOZNY have?It is not neccessary to use all the tables.
SELECT MIN(national_university_of_ireland) FROM table_name_49 WHERE cultural_and_educational_panel = 0 AND labour_panel < 1
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest number of National University of Ireland that has a Cultural and Educational Panel of 0 and a Labour Panel smaller than 1?It is not neccessary to use all the tables.
SELECT MAX(labevents.valuenum) FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 54700 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime DESC LIMIT 1) AND labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'calculated total co2')
CREATE TABLE INST, Here is a database schema( table schema);
hey what was patient 54700's maximum calculated total co2 value when they came to the hospital last time?It is not neccessary to use all the tables.
SELECT COUNT Game FROM table WHERE Team = chicago
CREATE TABLE INST, Here is a database schema( table schema);
How many Games has a Team of chicago?.It is not neccessary to use all the tables.
SELECT Republican: Christopher Reed FROM table WHERE Lead Margin < 16
CREATE TABLE INST, Here is a database schema( table schema);
What percentage did Republish Christopher Reed receive when the lead margin was smaller than 16?.It is not neccessary to use all the tables.
SELECT SUM Scottish Cup FROM table WHERE League Cup < 2 AND Total > 6 AND Position = forward
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of the scottish cup of the forward player with less than 2 league cups and a total greater than 6?.It is not neccessary to use all the tables.
SELECT runner_s__up FROM table_name_21 WHERE winning_score = –10(66 - 71 - 62 - 71 = 270)
CREATE TABLE INST, Here is a database schema( table schema);
Who has the Winning score of –10 (66-71-62-71=270) ?It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Opponents in the final = james cerretani todd perry
CREATE TABLE INST, Here is a database schema( table schema);
What was the score for the match were the opponent in the final was james cerretani todd perry?.It is not neccessary to use all the tables.
SELECT Player FROM table WHERE Round = 7 AND Overall = #195
CREATE TABLE INST, Here is a database schema( table schema);
Who is the player on round 7 with an overall ranking of #195?.It is not neccessary to use all the tables.
SELECT EBIT (£m) FROM table WHERE Earnings per share (p) = 10.6
CREATE TABLE INST, Here is a database schema( table schema);
Name the ebit for eps being 10.6.It is not neccessary to use all the tables.
SELECT record FROM table_name_40 WHERE opponent = "evangelista cyborg"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Record when Evangelista Cyborg was the opponent?It is not neccessary to use all the tables.
SELECT males FROM table WHERE females = 62 331
CREATE TABLE INST, Here is a database schema( table schema);
What was the number of males that had the number females 62 331?.It is not neccessary to use all the tables.
SELECT SUM(stations) FROM table_name_86 WHERE line = "u 6"
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number of stations with a line that is u 6?It is not neccessary to use all the tables.
SELECT COUNT("type") FROM table_203_356 WHERE "crop factor" < 1.0
CREATE TABLE INST, Here is a database schema( table schema);
how many sensors have a crop area of less than 1.0 ?It is not neccessary to use all the tables.
SELECT language FROM table_name_27 WHERE director = "federico fellini"
CREATE TABLE INST, Here is a database schema( table schema);
What is the language of the film directed by Federico Fellini?It is not neccessary to use all the tables.
SELECT customer_id, COUNT(*) FROM Customers_cards GROUP BY customer_id ORDER BY COUNT(*) DESC LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
What is the customer id with most number of cards and how many does he have?It is not neccessary to use all the tables.
SELECT Name FROM table WHERE Status = loaned AND Moving to = leyton orient
CREATE TABLE INST, Here is a database schema( table schema);
What is the name listed for the country that has a status of loaned and a moving to listed as leyton orient?.It is not neccessary to use all the tables.
SELECT score FROM table_name_80 WHERE opponent = "isha lakhani"
CREATE TABLE INST, Here is a database schema( table schema);
What was the score of the tournament against Isha Lakhani?It is not neccessary to use all the tables.
SELECT School_ID, All_Games_Percent FROM basketball_match
CREATE TABLE INST, Here is a database schema( table schema);
A scatter chart shows the correlation between School_ID and All_Games_Percent .It is not neccessary to use all the tables.
SELECT COUNT Number of electorates (2009) FROM table WHERE District = jhajjar AND Reserved for ( SC / ST /None) = sc AND Constituency number < 66
CREATE TABLE INST, Here is a database schema( table schema);
Which Number of electorates (2009) has a District of jhajjar, and a Reserved for (SC/ST/None) of sc, and a Constituency number smaller than 66?.It is not neccessary to use all the tables.
SELECT bachelorette FROM table_name_37 WHERE premiered = "may 24, 2010"
CREATE TABLE INST, Here is a database schema( table schema);
Who is the bachelorette of the season that premiered on May 24 2010?It is not neccessary to use all the tables.
SELECT fleet_series FROM table_name_96 WHERE quantity = 5
CREATE TABLE INST, Here is a database schema( table schema);
Name the fleet series with a quantity of 5It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Goal = 21
CREATE TABLE INST, Here is a database schema( table schema);
When did the team score 21 goals?.It is not neccessary to use all the tables.
SELECT race_2_pts_ FROM table_23293785_3 WHERE race_1_pts_ = 12
CREATE TABLE INST, Here is a database schema( table schema);
How many are the Race 2 points when Race 1 was 12?It is not neccessary to use all the tables.
SELECT Opponent FROM table WHERE Result = w 31-21
CREATE TABLE INST, Here is a database schema( table schema);
Tell mem the opponent for result of w 31-21.It is not neccessary to use all the tables.
SELECT Oil Rig FROM table WHERE Place = 7th
CREATE TABLE INST, Here is a database schema( table schema);
What's the oil rig of the song that ended on 7th place?.It is not neccessary to use all the tables.
SELECT MIN Rnd FROM table WHERE GT Winning Car = Max Angelelli
CREATE TABLE INST, Here is a database schema( table schema);
What is the earliest round where the gt winning car is max angelelli?.It is not neccessary to use all the tables.
SELECT Year FROM table WHERE Status = nominated AND Film = the last samurai
CREATE TABLE INST, Here is a database schema( table schema);
What year was The Last Samurai nominated?.It is not neccessary to use all the tables.
SELECT COUNT(act) FROM table_28180840_15 WHERE name_name_of_act = "Modern Grannies"
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number of modern grannies performed?It is not neccessary to use all the tables.
SELECT Tuesday FROM table WHERE Thursday = fox sports tonight (ends 1 am next day)
CREATE TABLE INST, Here is a database schema( table schema);
What is shown on Tuesday when Thursday shows Fox Sports Tonight (ends 1 am next day)?.It is not neccessary to use all the tables.
SELECT third_place FROM table_name_16 WHERE score = "2–6, 7–6(3), [10–5]"
CREATE TABLE INST, Here is a database schema( table schema);
Who holds third place in the tournament with a score of 2–6 7–6(3) [10–5]?It is not neccessary to use all the tables.
SELECT character FROM table_name_13 WHERE actor = "nadine spruß"
CREATE TABLE INST, Here is a database schema( table schema);
How long did the soap opera run in which Nadine Spruß acted in?It is not neccessary to use all the tables.
SELECT country FROM table_name_65 WHERE player = "scott hoch"
CREATE TABLE INST, Here is a database schema( table schema);
Which country is Scott Hoch from?It is not neccessary to use all the tables.
SELECT Opponent FROM table WHERE Result = bye
CREATE TABLE INST, Here is a database schema( table schema);
Who was the opponent of the Bye result?.It is not neccessary to use all the tables.
SELECT World record FROM table WHERE 13 April 2003 = 26 April 2009
CREATE TABLE INST, Here is a database schema( table schema);
Name the world record for 26 april 2009.It is not neccessary to use all the tables.
SELECT Longitude FROM table WHERE Date (YYYY-MM-DD) = 2010-01-09
CREATE TABLE INST, Here is a database schema( table schema);
What was the longitude for the shock that occured on 2010-01-09?.It is not neccessary to use all the tables.
SELECT country FROM table_name_96 WHERE player = "hale irwin"
CREATE TABLE INST, Here is a database schema( table schema);
What is Country when Player is "Hale Irwin"?It is not neccessary to use all the tables.
SELECT competition FROM table_name_44 WHERE result = "1-0"
CREATE TABLE INST, Here is a database schema( table schema);
Which competition had a result of 1-0?It is not neccessary to use all the tables.
SELECT COUNT Location FROM table WHERE Varsity Teams = 17
CREATE TABLE INST, Here is a database schema( table schema);
how many places have 17 varsity teams?.It is not neccessary to use all the tables.
SELECT Document_Date, COUNT(Document_Date) FROM Ref_Document_Types AS T1 JOIN Documents AS T2 ON T1.Document_Type_Code = T2.Document_Type_Code GROUP BY Document_Type_Description
CREATE TABLE INST, Here is a database schema( table schema);
How many documents are created in each day? Bin the document date by weekday and group by document type description with a stacked bar chart.It is not neccessary to use all the tables.
SELECT t2.drugname FROM (SELECT patient.uniquepid, treatment.treatmenttime FROM treatment JOIN patient ON treatment.patientunitstayid = patient.patientunitstayid WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '004-64091' AND patient.hospitaldischargetime IS NULL) AND treatment.treatmentname = 'pulmonary artery catheter placement') AS t1 JOIN (SELECT patient.uniquepid, medication.drugname, medication.drugstarttime FROM medication JOIN patient ON medication.patientunitstayid = patient.patientunitstayid WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '004-64091' AND patient.hospitaldischargetime IS NULL)) AS t2 ON t1.uniquepid = t2.uniquepid WHERE t1.treatmenttime < t2.drugstarttime AND DATETIME(t1.treatmenttime, 'start of day') = DATETIME(t2.drugstarttime, 'start of day')
CREATE TABLE INST, Here is a database schema( table schema);
what was the name of the drug prescribed for patient 004-64091 in the same day after having received a pulmonary artery catheter placement procedure on the current hospital visit?It is not neccessary to use all the tables.
SELECT Record FROM table WHERE February = 1
CREATE TABLE INST, Here is a database schema( table schema);
What was the team's rcord on february 1?.It is not neccessary to use all the tables.
SELECT Gold FROM table WHERE Silver = south korea AND Year = 1986
CREATE TABLE INST, Here is a database schema( table schema);
Can you tell me the Gold that has the Silver of south korea, and the Year of 1986?.It is not neccessary to use all the tables.
SELECT Number stayed in Southeast FROM table WHERE Total number emigrated or forcibly removed = 19,600
CREATE TABLE INST, Here is a database schema( table schema);
How many of those who stayed in the southeast had 19,600 emigrated or forcibly removed?.It is not neccessary to use all the tables.
SELECT AVG Wins FROM table WHERE Points < 19
CREATE TABLE INST, Here is a database schema( table schema);
What is the average Wins, when Points is less than "19"?.It is not neccessary to use all the tables.
SELECT score FROM table_name_74 WHERE venue = "valley parade" AND date = "10/6/01"
CREATE TABLE INST, Here is a database schema( table schema);
What is the score at valley parade on 10/6/01?It is not neccessary to use all the tables.
SELECT score_in_the_final FROM table_name_38 WHERE outcome = "runner-up" AND surface = "hard (i)"
CREATE TABLE INST, Here is a database schema( table schema);
What is the score in the final with runner-up as the outcome and hard (i) as the surface?It is not neccessary to use all the tables.
SELECT Result FROM table WHERE Goal < 2
CREATE TABLE INST, Here is a database schema( table schema);
What is the result when there's less than 2 goals?.It is not neccessary to use all the tables.
SELECT AVG(attendance) FROM table_name_5 WHERE week < 4 AND result = "w 31-20"
CREATE TABLE INST, Here is a database schema( table schema);
What is the attendance in a week earlier than 4 and result is w 31-20?It is not neccessary to use all the tables.
SELECT Common English FROM table WHERE Italian = san gallo
CREATE TABLE INST, Here is a database schema( table schema);
What is the common English for the Italian word san gallo?.It is not neccessary to use all the tables.
SELECT "Match" FROM table_41176 WHERE "Team" = 'skra warszawa'
CREATE TABLE INST, Here is a database schema( table schema);
What is the Match for skra warszawa?It is not neccessary to use all the tables.
SELECT * FROM table_test_9 WHERE hepatic_disease = 1 OR child_pugh_class = 'b' OR child_pugh_class = 'c' OR renal_disease = 1 OR estimated_glomerular_filtration_rate_egfr < 25
CREATE TABLE INST, Here is a database schema( table schema);
hepatic failure ( childs _ pugh grade b or c ) or renal failure ( estimated glomerular filtration rate < 25 ml / min )It is not neccessary to use all the tables.
SELECT Title FROM table WHERE Production code = 06-02-406
CREATE TABLE INST, Here is a database schema( table schema);
What is title of episode 06-02-406?.It is not neccessary to use all the tables.
SELECT County FROM table WHERE Market Income Per Capita = $25,006
CREATE TABLE INST, Here is a database schema( table schema);
what is the county where the market income per capita is $25,006?.It is not neccessary to use all the tables.
SELECT AVG(round) FROM table_name_93 WHERE college = "florida" AND overall < 166
CREATE TABLE INST, Here is a database schema( table schema);
In what Round was the draft pick from Florida with an Overall less than 166?It is not neccessary to use all the tables.
SELECT Percent (1990) FROM table WHERE State = Mississippi
CREATE TABLE INST, Here is a database schema( table schema);
what are all the percent (1990) where state is mississippi.It is not neccessary to use all the tables.
SELECT MAX(rank) FROM table_name_98 WHERE source = "fao" AND out_of > 50 AND name = "dietary calorie intake"
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest rank that has fao as a source and an out greater than 50 with dietary calorie intake as the name?It is not neccessary to use all the tables.
SELECT callsign FROM table_name_23 WHERE power__kw_ = "5kw" AND branding = "sonshine radio cotabato"
CREATE TABLE INST, Here is a database schema( table schema);
What is the callsign of the 5kW Sonshine Radio Cotabato?It is not neccessary to use all the tables.
SELECT SUM(attendance) FROM table_name_59 WHERE home = "philadelphia" AND points < 23
CREATE TABLE INST, Here is a database schema( table schema);
Which Attendance has a Home of philadelphia and Points smaller than 23?It is not neccessary to use all the tables.
SELECT COUNT(laps) FROM table_name_91 WHERE grid = 25
CREATE TABLE INST, Here is a database schema( table schema);
How many laps for grid 25?It is not neccessary to use all the tables.
SELECT Nat. FROM table WHERE Moving from = bordeaux
CREATE TABLE INST, Here is a database schema( table schema);
In what nation is Bordeaux?.It is not neccessary to use all the tables.
SELECT MAX Played FROM table WHERE Lost > 2 AND Team = palmeiras AND Drawn < 1
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest number played with more than 2 lost for Palmeiras and less than 1 draw?.It is not neccessary to use all the tables.
SELECT pole_position FROM table_22765887_1 WHERE date = "August 15, 1981"
CREATE TABLE INST, Here is a database schema( table schema);
Who had the pole position in the August 15 1981 race?It is not neccessary to use all the tables.
SELECT Country FROM table WHERE Lane < 2 AND Name = anselmo da silva
CREATE TABLE INST, Here is a database schema( table schema);
Which country has Anselmo Da Silva in lane 2?.It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Record = 8–11–1
CREATE TABLE INST, Here is a database schema( table schema);
What was the score of the Kings game when they had a record of 8–11–1?.It is not neccessary to use all the tables.
SELECT november_3 FROM table_25252080_3 WHERE june_10_11 = "June 10, 1964"
CREATE TABLE INST, Here is a database schema( table schema);
What is shown for november 3 when june 10-11 is june 10 1964?It is not neccessary to use all the tables.
SELECT air_date FROM table_name_31 WHERE test_taker = "robert"
CREATE TABLE INST, Here is a database schema( table schema);
On which air date was Robert the test-taker?It is not neccessary to use all the tables.
SELECT type FROM table_255602_1 WHERE area__km²_ = "155.77"
CREATE TABLE INST, Here is a database schema( table schema);
What are all the political types where area is 155.77?It is not neccessary to use all the tables.
SELECT MAX(first_elected) FROM table_1341690_18 WHERE candidates = "Otto Passman (D) Unopposed"
CREATE TABLE INST, Here is a database schema( table schema);
What year was Otto Passman (d) unopposed first elected?It is not neccessary to use all the tables.
SELECT COUNT(rank) FROM table_name_25 WHERE swing_to_gain < 6.92 AND constituency = "caerphilly"
CREATE TABLE INST, Here is a database schema( table schema);
What rank was caerphilly with a Swing smaller than 6.92?It is not neccessary to use all the tables.
SELECT Middle German ( Luxemburgish ) FROM table WHERE English = stone
CREATE TABLE INST, Here is a database schema( table schema);
What is the Middle German (Luxemburgish) word for stone?.It is not neccessary to use all the tables.
SELECT MIN(gold) FROM table_name_23 WHERE total = 7
CREATE TABLE INST, Here is a database schema( table schema);
What is the smallest number of gold medals a country with 7 medals has?It is not neccessary to use all the tables.
SELECT Writtenby FROM table WHERE Production code = 3WAB03
CREATE TABLE INST, Here is a database schema( table schema);
what is the written by and production code is 3wab03?.It is not neccessary to use all the tables.
SELECT sail_number FROM table_25595107_2 WHERE loa__metres_ = "13.68"
CREATE TABLE INST, Here is a database schema( table schema);
What is the number of the sail with an overall length of 13.68?It is not neccessary to use all the tables.
SELECT MIN Year FROM table WHERE Location = milan AND Champion = guillermo vilas
CREATE TABLE INST, Here is a database schema( table schema);
When is the earliest year in milan that guillermo vilas was champion?.It is not neccessary to use all the tables.
SELECT "2003" FROM table_46117 WHERE "2000" = '—' AND "2007" = '—' AND "2010" = '—'
CREATE TABLE INST, Here is a database schema( table schema);
Name the 2003 which has a 2000 of , and a 2007 of , and a 2010 of ?It is not neccessary to use all the tables.
SELECT Home team FROM table WHERE Venue = junction oval
CREATE TABLE INST, Here is a database schema( table schema);
Who was the home team for the game played at Junction Oval?.It is not neccessary to use all the tables.
SELECT Meet FROM table WHERE Date = 3 august 2012
CREATE TABLE INST, Here is a database schema( table schema);
what is the meet when the date is 3 august 2012?.It is not neccessary to use all the tables.
SELECT other_hotel_details FROM HOTELS ORDER BY price_range DESC LIMIT 3
CREATE TABLE INST, Here is a database schema( table schema);
Show the details of the top 3 most expensive hotels.It is not neccessary to use all the tables.
SELECT incumbent FROM table_1341586_39 WHERE candidates = "Bud Shuster (R) Unopposed"
CREATE TABLE INST, Here is a database schema( table schema);
who is the incumbent with candidates being bud shuster (r) unopposedIt is not neccessary to use all the tables.
SELECT place FROM table_name_96 WHERE score = 67 - 70 = 137
CREATE TABLE INST, Here is a database schema( table schema);
What is the place of the person with a score of 67-70=137?It is not neccessary to use all the tables.
SELECT district FROM table_1342426_5 WHERE incumbent = "William J. Driver"
CREATE TABLE INST, Here is a database schema( table schema);
Name the district for william j. driverIt is not neccessary to use all the tables.
SELECT COUNT(start) FROM table_name_53 WHERE team = "rahal letterman" AND year = 2006
CREATE TABLE INST, Here is a database schema( table schema);
Where did the team of Rahal Letterman in 2006 start?It is not neccessary to use all the tables.
SELECT Others% FROM table WHERE Bush# = 1329
CREATE TABLE INST, Here is a database schema( table schema);
What is the percentage of others when the number for Bush is 1329? .It is not neccessary to use all the tables.
SELECT country FROM table_18862490_2 WHERE player = "Robert Allenby"
CREATE TABLE INST, Here is a database schema( table schema);
What country does robert allenby represent?It is not neccessary to use all the tables.