Simple Question (Direct)
Simple Question
Q19276671
P69
Q159334
USER
What is the secondary school where John Kooiker was educated ?
(Q19276671,P69,c(Q159334))
action filter_type
action find
entity Q19276671
relation P69
type Q159334
['Q19276671', 'P69', {'concept': 'Q159334'}]
SELECT DISTINCT ?k WHERE { resource:Q19276671 property:P69 ?k . ?k rdf:type ontology:Q159334 }
John Kooiker
action filter_type
action find
entity John Kooiker
relation educated at
type secondary school
['John Kooiker', 'educated at', {'concept': 'secondary school'}]
SELECT DISTINCT ?k WHERE { resource:John_Kooiker property:educated_at ?k . ?k rdf:type ontology:secondary_school }
[]
secondary school
Q15087805
SYSTEM
Western Christian High School (Hull, Iowa)
Q15087805
(Q19276671,P69,c(Q159334))
action filter_type
action find
entity Q19276671
relation P69
type Q159334
The secondary school John Kooiker was educated is [ANSWER]
['Q19276671', 'P69', {'concept': 'Q159334'}]
SELECT DISTINCT ?k WHERE { resource:Q19276671 property:P69 ?k . ?k rdf:type ontology:Q159334 }
Western Christian High School (Hull, Iowa)
The secondary school John Kooiker was educated is Western Christian High School (Hull, Iowa)
Western Christian High School (Hull, Iowa)
action filter_type
action find
entity John Kooiker
relation educated at
type secondary school
['John Kooiker', 'educated at', {'concept': 'secondary school'}]
SELECT DISTINCT ?k WHERE { resource:John_Kooiker property:educated_at ?k . ?k rdf:type ontology:secondary_school }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q19276671
P22
Q502895
USER
Which person has John Kooiker as father ?
(c(Q502895),P22,Q19276671)
action filter_type
action find_reverse
entity Q19276671
relation P22
type Q502895
[{'concept': 'Q502895'}, 'P22', 'Q19276671']
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q502895 . ?b property:P22 resource:Q19276671 }
John Kooiker
action filter_type
action find_reverse
entity John Kooiker
relation father
type common name
[{'concept': 'common name'}, 'father', 'John Kooiker']
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:common_name . ?b property:father resource:John_Kooiker }
[]
common name
Q19894153
SYSTEM
Sam Kooiker
Q19894153
(c(Q502895),P22,Q19276671)
action filter_type
action find_reverse
entity Q19276671
relation P22
type Q502895
[ANSWER] has John Kooiker as father
[{'concept': 'Q502895'}, 'P22', 'Q19276671']
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q502895 . ?b property:P22 resource:Q19276671 }
Sam Kooiker
Sam Kooiker has John Kooiker as father
Sam Kooiker
action filter_type
action find_reverse
entity John Kooiker
relation father
type common name
[{'concept': 'common name'}, 'father', 'John Kooiker']
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:common_name . ?b property:father resource:John_Kooiker }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q19894153
P1050
Q2057971
USER
What is that person affected by ?
(Q19894153,P1050,c(Q2057971))
action filter_type
action find
entity Q19894153
relation P1050
type Q2057971
['Q19894153', 'P1050', {'concept': 'Q2057971'}]
SELECT DISTINCT ?o WHERE { resource:Q19894153 property:P1050 ?o . ?o rdf:type ontology:Q2057971 }
Sam Kooiker
action filter_type
action find
entity Sam Kooiker
relation medical condition
type health problem
['Sam Kooiker', 'medical condition', {'concept': 'health problem'}]
SELECT DISTINCT ?o WHERE { resource:Sam_Kooiker property:medical_condition ?o . ?o rdf:type ontology:health_problem }
[]
health problem
Q210427
SYSTEM
cerebral palsy
Q210427
(Q19894153,P1050,c(Q2057971))
action filter_type
action find
entity Q19894153
relation P1050
type Q2057971
Is affected by the [ANSWER]
['Q19894153', 'P1050', {'concept': 'Q2057971'}]
SELECT DISTINCT ?o WHERE { resource:Q19894153 property:P1050 ?o . ?o rdf:type ontology:Q2057971 }
cerebral palsy
Is affected by the cerebral palsy
cerebral palsy
action filter_type
action find
entity Sam Kooiker
relation medical condition
type health problem
['Sam Kooiker', 'medical condition', {'concept': 'health problem'}]
SELECT DISTINCT ?o WHERE { resource:Sam_Kooiker property:medical_condition ?o . ?o rdf:type ontology:health_problem }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P1542
Q2057971 Q12136 Q2057971
USER
Which health problems result in approximately 4 health problems or diseases ?
(c(Q2057971),P1542,c(Q2057971)|c(Q12136))
action approx
action union
action find_tuple_counts
relation P1542
type Q2057971
type Q2057971
action find_tuple_counts
relation P1542
type Q2057971
type Q12136
value 4
[{'concept': 'Q2057971'}, 'P1542', [{'concept': 'Q2057971'}, {'concept': 'Q12136'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?a ) AS ?e ) WHERE { { ?b property:P1542 ?a . ?a rdf:type ontology:Q2057971 . ?b rdf:type ontology:Q2057971 } UNION { ?a rdf:type ontology:Q12136 . ?b rdf:type ontology:Q2057971 . ?b property:P1542 ?a } } GROUP BY ?b } . FILTER ( ?e = 4 ) }
action approx
action union
action find_tuple_counts
relation cause of
type health problem
type health problem
action find_tuple_counts
relation cause of
type health problem
type disease
value 4
[{'concept': 'health problem'}, 'cause of', [{'concept': 'health problem'}, {'concept': 'disease'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?a ) AS ?e ) WHERE { { ?b property:cause_of ?a . ?a rdf:type ontology:health_problem . ?b rdf:type ontology:health_problem } UNION { ?a rdf:type ontology:disease . ?b rdf:type ontology:health_problem . ?b property:cause_of ?a } } GROUP BY ?b } . FILTER ( ?e = 4 ) }
[]
health problem disease health problem
Q12206
SYSTEM
diabetes mellitus
Q12206
(c(Q2057971),P1542,c(Q2057971)|c(Q12136))
action approx
action union
action find_tuple_counts
relation P1542
type Q2057971
type Q2057971
action find_tuple_counts
relation P1542
type Q2057971
type Q12136
value 4
[ANSWER] result in approximately 4 health problems or diseases
[{'concept': 'Q2057971'}, 'P1542', [{'concept': 'Q2057971'}, {'concept': 'Q12136'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?a ) AS ?e ) WHERE { { ?b property:P1542 ?a . ?a rdf:type ontology:Q2057971 . ?b rdf:type ontology:Q2057971 } UNION { ?a rdf:type ontology:Q12136 . ?b rdf:type ontology:Q2057971 . ?b property:P1542 ?a } } GROUP BY ?b } . FILTER ( ?e = 4 ) }
diabetes mellitus
Diabetes mellitus result in approximately 4 health problems or diseases
diabetes mellitus
action approx
action union
action find_tuple_counts
relation cause of
type health problem
type health problem
action find_tuple_counts
relation cause of
type health problem
type disease
value 4
[{'concept': 'health problem'}, 'cause of', [{'concept': 'health problem'}, {'concept': 'disease'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?a ) AS ?e ) WHERE { { ?b property:cause_of ?a . ?a rdf:type ontology:health_problem . ?b rdf:type ontology:health_problem } UNION { ?a rdf:type ontology:disease . ?b rdf:type ontology:health_problem . ?b property:cause_of ?a } } GROUP BY ?b } . FILTER ( ?e = 4 ) }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q12206
P509 P21
Q502895
USER
Which people died from diabetes mellitus and have male as the sex ?
AND((c(Q502895),P509,Q12206), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q12206
relation P509
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P509', 'Q12206'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?j WHERE { ?j property:P509 resource:Q12206 . ?j property:P21 resource:Q6581097 . ?j rdf:type ontology:Q502895 }
male diabetes mellitus
action filter_type
action intersection
action find_reverse
entity diabetes mellitus
relation cause of death
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'cause of death', 'diabetes mellitus'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?j WHERE { ?j property:cause_of_death resource:diabetes_mellitus . ?j property:gender resource:male . ?j rdf:type ontology:common_name }
[]
common name
Q3182329 Q5076226 Q1919690 Q79170 Q456674 Q42775 Q503416 Q15429511 Q5273325 Q33977
SYSTEM
Some of them are John R. Cumpson, Charles Chibitty, Victor Sumulong, Eugen Ehrlich, Rodolfo de Anda, Johnny Cash, Florentino Ameghino, Frank Martínez, Dick Rowe, Jules Verne
Q5238479 Q473313 Q5218519 Q558333 Q6915582 Q868403 Q3013008 Q656507 Q8052190 Q5258406 Q1371282 Q2149888 Q1919690 Q7545167 Q1383403 Q2174572 Q931607 Q5490362 Q4932408 Q1699957 Q6287570 Q7406692 Q3898130 Q610951 Q1204884 Q48149 Q1414001 Q1703948 Q328816 Q7924778 Q3182329 Q2482954 Q4797969 Q7853252 Q16019341 Q633168 Q7331499 Q6255181 Q8017299 Q15458294 Q310170 Q205322 Q1370892 Q372862 Q6077137 Q1657687 Q558602 Q7931831 Q4322639 Q718245 Q1346384 Q3436314 Q538971 Q7965228 Q42775 Q173061 Q16183695 Q14946783 Q717821 Q3481777 Q667881 Q298286 Q206223 Q902536 Q5085711 Q809332 Q314185 Q366102 Q1800159 Q167877 Q316706 Q379399 Q2098858 Q6913938 Q434146 Q971344 Q62662 Q248207 Q7789451 Q2080409 Q4799471 Q6200423 Q555487 Q3319096 Q223611 Q4019955 Q419492 Q822318 Q3133102 Q15130709 Q13657482 Q596379 Q7292481 Q860180 Q9620574 Q4684131 Q4216289 Q6224579 Q3479178 Q7514238 Q15501013 Q1658604 Q11342044 Q531995 Q3404909 Q6143954 Q5181456 Q174606 Q7922109 Q2622191 Q1989397 Q2017853 Q331503 Q178575 Q251287 Q1282417 Q220158 Q208881 Q5824704 Q6209523 Q5627482 Q447850 Q3875086 Q211513 Q4298704 Q3445751 Q5443828 Q5553400 Q7364795 Q3707023 Q643339 Q5217852 Q15993383 Q5561047 Q345217 Q326357 Q5317342 Q5082952 Q716792 Q5902025 Q2659211 Q652483 Q2735756 Q1392583 Q4935765 Q16043634 Q314990 Q320065 Q730275 Q731407 Q7961699 Q1324097 Q2740871 Q8000115 Q558853 Q1239567 Q7297919 Q5350838 Q430216 Q6247949 Q715836 Q6286556 Q6277190 Q854935 Q1247174 Q2287723 Q6248875 Q766215 Q16014374 Q7087675 Q4787217 Q2462357 Q5650794 Q312870 Q1022530 Q1967550 Q1570571 Q517986 Q6792168 Q15429511 Q6525554 Q5210638 Q6318496 Q6706790 Q5217223 Q215586 Q6271379 Q334885 Q348209 Q19703095 Q4829502 Q1386948 Q6282411 Q7436777 Q6139856 Q37682 Q364434 Q7332180 Q7150738 Q4112619 Q797599 Q639347 Q2588431 Q5277103 Q5540633 Q318302 Q472520 Q335349 Q1744455 Q192818 Q5907728 Q1841254 Q453329 Q1575579 Q5216691 Q1514682 Q16185731 Q664029 Q948093 Q2126461 Q7344871 Q313841 Q1252512 Q2813872 Q5075062 Q7022852 Q4753753 Q719766 Q7535747 Q5341423 Q367508 Q3181576 Q328110 Q16019827 Q1294489 Q4925409 Q7370470 Q6394669 Q495624 Q5605385 Q382645 Q1971737 Q33977 Q1965038 Q976573 Q436069 Q4864290 Q6490443 Q6396538 Q2093340 Q378098 Q3530701 Q6287091 Q1585614 Q1391146 Q79170 Q116013 Q380494 Q687509 Q954205 Q5343146 Q1991074 Q50997 Q1354341 Q34286 Q934446 Q3186572 Q447433 Q337040 Q5002129 Q6848319 Q6388637 Q633155 Q262117 Q2601072 Q345231 Q6227005 Q6281395 Q5102498 Q5109884 Q6112581 Q7077567 Q456674 Q16018119 Q2369623 Q7927670 Q325147 Q166604 Q5490413 Q6662274 Q5006427 Q7154324 Q16019449 Q550570 Q707440 Q6490318 Q858962 Q5645998 Q1066026 Q326935 Q188969 Q6324069 Q1344237 Q1797143 Q5231780 Q3427861 Q7555132 Q3124795 Q969031 Q5669984 Q1766032 Q4647229 Q5542345 Q722923 Q12970173 Q1787960 Q4934766 Q2067524 Q4712350 Q504362 Q4865199 Q7343597 Q4073124 Q5076226 Q4483453 Q1562569 Q5273325 Q16012415 Q365369 Q420803 Q1180362 Q5317206 Q15438156 Q499649 Q312857 Q5183240 Q5170792 Q574496 Q1559903 Q503416 Q3958199 Q260879 Q4952873 Q3806642 Q16019401 Q705172 Q701020 Q5423738 Q19609897 Q5495550 Q6209766 Q16939791 Q6411578
AND((c(Q502895),P509,Q12206), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q12206
relation P509
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWERS] died from diabetes mellitus and have male as the sex
{'AND': [[{'concept': 'Q502895'}, 'P509', 'Q12206'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?j WHERE { ?j property:P509 resource:Q12206 . ?j property:P21 resource:Q6581097 . ?j rdf:type ontology:Q502895 }
David Peaston Ammo Baba Daniel R. Escobar Buddy Hackett Mose Vinson Ochiai Naobumi Dan Alderson Sydney Greenstreet Yen Ngoc Do Dennis Ferguson José López Rega Richard Jewell Victor Sumulong Smith Hempstone Hal Fowler Rudy Ray Moore Earl King Frank Wilkeson Bob Ferguson John Ehrlichman Joseph V. Perry Salvatore Scarpitta Paul Ngei Patriarch Diodoros of Jerusalem John Wilkinson Fyodor Tolbukhin Filippo Smaldone Jorge Villamil Kotozakura Masakatsu Vic Dunlop John R. Cumpson Orson Pratt Arthur Bell Tunku Abdul Rahman Joel Connable Archibald Gracie IV Rick Joseph John Roberts William R. Travers J. Robert Bradley Curtis Mayfield Frankie Knuckles Phife Dawg Nuri Demirağ Isaac Smith Kalloch Igor Kio Don Cornell Vincent Gruppuso Boris Novikov Louis Lansana Beavogui Jimmy Yancey Bobby Rogers Donald McPherson Walter J. Kavanaugh Johnny Cash Syd Barrett Hwang Hae Lee Lockwood John Wu Shel Dorf Junior Murvin Mikhail Chigorin Francis II of the Two Sicilies Dave Cockrum Charlie Williams Bartholomew Ulufa'alu George Mikan Nathan Bedford Forrest Lafayette Leake Michael Jackson Sugar Ray Robinson Israel Shahak Clarence Paul Morris W. Turner Alfonso López Trujillo Tab Thacker Leo Kirch Rick James Thomas F. Grady John Rutsey Arthur Lee "Red" Smiley Jimmy Hutmaker Carroll O'Connor Mohamed Ygerbuchen Kálmán Latabár William Calhoun Akiyama Yoshifuru Bernard Bonnin Matty Alou Leon Stover Harry J Frédéric Etsou-Nzabi-Bamungwabi Randy Turner Charles Blondin António de Sousa Bastos Adolf Krössing Shunsuke Ikeda John C. Ostlund Serge Aubry Silas W. Lamoreaux James Snow Michael France Mr. Hito Heinrich Schenker Ray Gravell James T. Molloy Craig Slocum Tomaso Albinoni Vernon Dent Amir Vahedi Douglas Campbell John Dehner Christopher Hewett Rafael López Gutiérrez Waylon Jennings Edward L. Masry Zoogz Rift Bo Diddley Marvin Isley Joe Dini Eduardo Alcaraz B. H. Roberts Iwao Horiuchi Sergei Diaghilev Boleslav Mlodzeevskii Roy Brocksmith Ferdinand Eidman Ralph Anderson Ronald DeWolf Andrew Gonzalez Urie Bronfenbrenner Daniel L. Norris Happy Pieterse Gilbert Lani Kauhi Lucio Fulci Will "Dub" Jones Dutch Mason Charles Tidwell Sihung Lung Horace Nicholls Nicholas Mayall Bo Mya Greg Burson Raul Seixas Bobby Ávila J. H. M. Wigman Marcel Achard Artie Shaw Mikhail Pugovkin Constant Lambert Walek Dzedzej Lewis Nixon Ham Richardson Wilbert Tatum Erol Taş Don Walser Ray Osrin El Brazo Rigo Tovar John McKay Bernard Dowiyogo Joseph Richard Bagshawe Jordan da Costa Bheki Mseleku Pál Reizer Simon Muzenda John Milner Fothergill Vincent Ford Frank Fulco Oliver Lynn Iain Blair Víctor Palomo Hans Villius Jerry Garcia Nagesh Aleksandr Porokhovshchikov Javier Tomeo Tommy Olivencia Mau Piailug Frank Martínez Leonard McEwan Dale Sommers Justo Justo Luís Gama Daniel G. Rollins Emil Rathenau Jon Petrovich Wayne Allwine Dom DeLuise Markku Halme Avrohom Blumenkrantz Norman Whitfield Joseph D. Bryant Scott Mateer James Mitose Sejong the Great Ivan Jandl Ricky Romero Paul Freeman Jeff Dwire Babatunde Olatunji Rafael Arnáiz Barón Oscar Obligacion Dilwyn Lewis George Hislop Paul Schiemann Hal B. Wallis David Cunliffe-Lister, 2nd Earl of Swinton Walt Barnes Bettino Craxi Ian Marter Vyacheslav Nevinny Hal Clement Hank Stram Daniel Burke Son Seals Sou Met Billy Henderson Juice Leskinen Salvador Araneta Robert Gordon Teather John Osborne Douglas Spencer Arai Ikunosuke Charles Alfred Drury Nguyen Huu Co Anders Daae Ted Joans Skip Young Edward Forehand Eric Dolphy Sein Hlaing Rocco Petrone Wesley Warren, Jr. Edwin Corning Blaster Bates Rothesay Stuart Wortley Kerry Talmage John L. Finley Greg Calvert Yao Wenyuan Rory Calhoun Jules Verne Yunus Parvez Matthew Ashman Guy Stockwell Barry Halper Larry H. Miller Kevin Humphreys Sydney Lassick William Frank Buckley, Jr. Thomas Crean Joseph Sobran Harmonica Frank Jesse Pintado Eugen Ehrlich Jan Trefulka Charles Demuth Jack Tatum Kunio Lemari Edward Grady Partin Nikolai Drozdetsky Hilla Limann Paul Pena Alexander Graham Bell Ron Santo José Sulaimán Manos Hatzidakis George Dantzig Buster Benton Mike Parobeck Arnoldo Castillo Marvin Santiago H. S. Wong Leslie Compton Evel Knievel John Cook Joseph Bayer Chitti Babu Christian Maronga Jack Frazier Ode Burrell Rodolfo de Anda Julio A. Garcia Patriarch Constantine V of Constantinople Vidal M. Treviño Bob Weinstock David S. Broder Frank Wilson Lloyd Best C. Eric Lincoln Paul Weyrich George Livingston George Brizan Stu Hart Larry Flynn Big Joe Duskin Martín Karadagian Hakushū Kitahara Pramoedya Ananta Toer B. B. King K. T. Francis Leo McKern Mário Juruna David Bromige Ernst Günther Soko Richardson Raul Padilla Fred Karno Harry J. Sonneborn Alexei Petrowitsch Malzew A.K. Nazmul Karim George McLeay Matus Bisnovat Ruben Rustia Alfredo d'Escragnolle Taunay Bobby Bennett Charles Austin Gardner Albie Grant Nguyen Khanh Barthold Fles Robert Dorning Ruslan Akhmetov Charles Chibitty Nikolaj Nikolaevič Figner Buck Ewing Dick Rowe Edward Ennis Roberto María Ortiz Jorge González Enzo Siciliano Dusty Rhodes Big Bad Smitty Nat Adderley Eugène Ysaÿe Crazy Ray Cork Hubbert Jan Gies Michael Vale Florentino Ameghino Teuku Nyak Arif John Howard Griffin Bozo Miller James L. Farmer, Jr. Jerry Grant Gorilla Monsoon Chiang Wei-kuo F. D. Reeve Max Stenbeck Fred J. Christensen Joe Falls Ciro Saraiva King Floyd
John R. Cumpson, Charles Chibitty, Victor Sumulong, Eugen Ehrlich, Rodolfo de Anda, Johnny Cash, Florentino Ameghino, Frank Martínez, Dick Rowe and Jules Verne died from diabetes mellitus and have male as the sex
John R. Cumpson Charles Chibitty Victor Sumulong Eugen Ehrlich Rodolfo de Anda Johnny Cash Florentino Ameghino Frank Martínez Dick Rowe Jules Verne
action filter_type
action intersection
action find_reverse
entity diabetes mellitus
relation cause of death
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'cause of death', 'diabetes mellitus'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?j WHERE { ?j property:cause_of_death resource:diabetes_mellitus . ?j property:gender resource:male . ?j rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments are played by around 1579 people ?
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 1579
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?u ) AS ?l ) WHERE { ?u property:P1303 ?r . ?r rdf:type ontology:Q34379 . ?u rdf:type ontology:Q502895 } GROUP BY ?r } . FILTER ( ?l = 1579 ) }
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 1579
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?u ) AS ?l ) WHERE { ?u property:instrument ?r . ?r rdf:type ontology:musical_instrument . ?u rdf:type ontology:common_name } GROUP BY ?r } . FILTER ( ?l = 1579 ) }
[]
musical instrument common name
Q80284 Q46185 Q80019
SYSTEM
viola, bass guitar, double bass
Q80284 Q46185 Q80019 Q8338 Q8371 Q1444 Q128309 Q1343007
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 1579
[ANSWERS] are played by around 1579 people
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?u ) AS ?l ) WHERE { ?u property:P1303 ?r . ?r rdf:type ontology:Q34379 . ?u rdf:type ontology:Q502895 } GROUP BY ?r } . FILTER ( ?l = 1579 ) }
viola bass guitar double bass trumpet cello organ drum kit electronic keyboard
Viola, bass guitar and double bass are played by around 1579 people
viola bass guitar double bass
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 1579
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?u ) AS ?l ) WHERE { ?u property:instrument ?r . ?r rdf:type ontology:musical_instrument . ?u rdf:type ontology:common_name } GROUP BY ?r } . FILTER ( ?l = 1579 ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P180
Q34379 Q386724 Q340169
USER
Which musical instruments are depicted in min number of works and medias ?
(c(Q386724)|c(Q340169),P180,c(Q34379))
action argmin
action union
action find_reverse_tuple_counts
relation P180
type Q34379
type Q386724
action find_reverse_tuple_counts
relation P180
type Q34379
type Q340169
[[{'concept': 'Q386724'}, {'concept': 'Q340169'}], 'P180', {'concept': 'Q34379'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MIN ( ?q ) AS ?x ) { SELECT DISTINCT ( COUNT ( ?v ) AS ?q ) ?m WHERE { { ?v property:P180 ?m . ?m rdf:type ontology:Q34379 . ?v rdf:type ontology:Q386724 } UNION { ?v property:P180 ?m . ?m rdf:type ontology:Q34379 . ?v rdf:type ontology:Q340169 } } GROUP BY ?m } } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?f ) ?p WHERE { ?d rdf:type ?s . VALUES ( ?s ) { ( ontology:Q386724 ) ( ontology:Q340169 ) } } GROUP BY ?p } . FILTER ( ?f = ?x ) }
action argmin
action union
action find_reverse_tuple_counts
relation depicts
type musical instrument
type work
action find_reverse_tuple_counts
relation depicts
type musical instrument
type media
[[{'concept': 'work'}, {'concept': 'media'}], 'depicts', {'concept': 'musical instrument'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MIN ( ?q ) AS ?x ) { SELECT DISTINCT ( COUNT ( ?v ) AS ?q ) ?m WHERE { { ?v property:depicts ?m . ?m rdf:type ontology:musical_instrument . ?v rdf:type ontology:work } UNION { ?v property:depicts ?m . ?m rdf:type ontology:musical_instrument . ?v rdf:type ontology:media } } GROUP BY ?m } } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?f ) ?p WHERE { ?d rdf:type ?s . VALUES ( ?s ) { ( ontology:work ) ( ontology:media ) } } GROUP BY ?p } . FILTER ( ?f = ?x ) }
[]
musical instrument work media
Q5994 Q81982 Q218547
SYSTEM
piano, harpsichord, Sigismund Bell
Q8371 Q3382191 Q5994 Q7933058 Q81982 Q190172 Q218547 Q8338 Q1444 Q173453 Q1148709 Q426948 Q871633 Q3500690 Q11404 Q1798603
(c(Q386724)|c(Q340169),P180,c(Q34379))
action argmin
action union
action find_reverse_tuple_counts
relation P180
type Q34379
type Q386724
action find_reverse_tuple_counts
relation P180
type Q34379
type Q340169
[ANSWERS] are depicted in min number of works and medias
[[{'concept': 'Q386724'}, {'concept': 'Q340169'}], 'P180', {'concept': 'Q34379'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MIN ( ?q ) AS ?x ) { SELECT DISTINCT ( COUNT ( ?v ) AS ?q ) ?m WHERE { { ?v property:P180 ?m . ?m rdf:type ontology:Q34379 . ?v rdf:type ontology:Q386724 } UNION { ?v property:P180 ?m . ?m rdf:type ontology:Q34379 . ?v rdf:type ontology:Q340169 } } GROUP BY ?m } } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?f ) ?p WHERE { ?d rdf:type ?s . VALUES ( ?s ) { ( ontology:Q386724 ) ( ontology:Q340169 ) } } GROUP BY ?p } . FILTER ( ?f = ?x ) }
cello upright piano piano Viola caipira harpsichord cymbal Sigismund Bell trumpet organ wind instrument grand piano sistrum Handbell Church bell drum string instrument
Piano, harpsichord and Sigismund Bell are depicted in min number of works and medias
piano harpsichord Sigismund Bell
action argmin
action union
action find_reverse_tuple_counts
relation depicts
type musical instrument
type work
action find_reverse_tuple_counts
relation depicts
type musical instrument
type media
[[{'concept': 'work'}, {'concept': 'media'}], 'depicts', {'concept': 'musical instrument'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MIN ( ?q ) AS ?x ) { SELECT DISTINCT ( COUNT ( ?v ) AS ?q ) ?m WHERE { { ?v property:depicts ?m . ?m rdf:type ontology:musical_instrument . ?v rdf:type ontology:work } UNION { ?v property:depicts ?m . ?m rdf:type ontology:musical_instrument . ?v rdf:type ontology:media } } GROUP BY ?m } } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?f ) ?p WHERE { ?d rdf:type ?s . VALUES ( ?s ) { ( ontology:work ) ( ontology:media ) } } GROUP BY ?p } . FILTER ( ?f = ?x ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q42775 Q666281
P106
Q12737077
USER
How many occupations have Johnny Cash or Beirdd yr Uchelwyr as his/her as a career ?
(Q42775,P106,c(Q12737077)) (Q666281,P106,c(Q12737077))
action count
action union
action filter_type
action find
entity Q42775
relation P106
type Q12737077
action filter_type
action find
entity Q666281
relation P106
type Q12737077
['Q42775', 'P106', {'concept': 'Q12737077'}] ['Q666281', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?h ) WHERE { { resource:Q42775 property:P106 ?v . ?v rdf:type ontology:Q12737077 } UNION { resource:Q666281 property:P106 ?v . ?v rdf:type ontology:Q12737077 } }
Johnny Cash Beirdd yr Uchelwyr
action count
action union
action filter_type
action find
entity Johnny Cash
relation occupation
type occupation
action filter_type
action find
entity Beirdd yr Uchelwyr
relation occupation
type occupation
['Johnny Cash', 'occupation', {'concept': 'occupation'}] ['Beirdd yr Uchelwyr', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?h ) WHERE { { resource:Johnny_Cash property:occupation ?v . ?v rdf:type ontology:occupation } UNION { resource:Beirdd_yr_Uchelwyr property:occupation ?v . ?v rdf:type ontology:occupation } }
[]
occupation
SYSTEM
8
Q639669 Q10798782 Q33999 Q36834 Q753110 Q488205 Q49757 Q177220
(Q42775,P106,c(Q12737077)) (Q666281,P106,c(Q12737077))
action count
action union
action filter_type
action find
entity Q42775
relation P106
type Q12737077
action filter_type
action find
entity Q666281
relation P106
type Q12737077
[ANSWER]
['Q42775', 'P106', {'concept': 'Q12737077'}] ['Q666281', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?h ) WHERE { { resource:Q42775 property:P106 ?v . ?v rdf:type ontology:Q12737077 } UNION { resource:Q666281 property:P106 ?v . ?v rdf:type ontology:Q12737077 } }
musician television actor actor composer songwriter singer-songwriter poet singer
8
action count
action union
action filter_type
action find
entity Johnny Cash
relation occupation
type occupation
action filter_type
action find
entity Beirdd yr Uchelwyr
relation occupation
type occupation
['Johnny Cash', 'occupation', {'concept': 'occupation'}] ['Beirdd yr Uchelwyr', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?h ) WHERE { { resource:Johnny_Cash property:occupation ?v . ?v rdf:type ontology:occupation } UNION { resource:Beirdd_yr_Uchelwyr property:occupation ?v . ?v rdf:type ontology:occupation } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q3851194 Q3182329
P19 P20
Q56061
USER
Which administrative territories did the expiration of John R. Cumpson occur or were Massimo Cellino born ?
OR((Q3182329,P20,c(Q56061)), (Q3851194,P19,c(Q56061)))
action filter_type
action union
action find
entity Q3182329
relation P20
action find
entity Q3851194
relation P19
type Q56061
{'OR': [['Q3182329', 'P20', {'concept': 'Q56061'}], ['Q3851194', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Q3182329 property:P20 ?i } UNION { resource:Q3851194 property:P19 ?i } } . ?i rdf:type ontology:Q56061 }
Massimo Cellino John R. Cumpson
action filter_type
action union
action find
entity John R. Cumpson
relation place of death
action find
entity Massimo Cellino
relation place of birth
type administrative territorial entity
{'OR': [['John R. Cumpson', 'place of death', {'concept': 'administrative territorial entity'}], ['Massimo Cellino', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?i WHERE { { { resource:John_R._Cumpson property:place_of_death ?i } UNION { resource:Massimo_Cellino property:place_of_birth ?i } } . ?i rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1897 Q60
SYSTEM
Cagliari, New York City
Q1897 Q60
OR((Q3182329,P20,c(Q56061)), (Q3851194,P19,c(Q56061)))
action filter_type
action union
action find
entity Q3182329
relation P20
action find
entity Q3851194
relation P19
type Q56061
Or were Massimo Cellino the expiration of John R. Cumpson occurred in [ANSWERS]
{'OR': [['Q3182329', 'P20', {'concept': 'Q56061'}], ['Q3851194', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Q3182329 property:P20 ?i } UNION { resource:Q3851194 property:P19 ?i } } . ?i rdf:type ontology:Q56061 }
Cagliari New York City
Or were Massimo Cellino the expiration of John R. Cumpson occurred in Cagliari and New York City
Cagliari New York City
action filter_type
action union
action find
entity John R. Cumpson
relation place of death
action find
entity Massimo Cellino
relation place of birth
type administrative territorial entity
{'OR': [['John R. Cumpson', 'place of death', {'concept': 'administrative territorial entity'}], ['Massimo Cellino', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?i WHERE { { { resource:John_R._Cumpson property:place_of_death ?i } UNION { resource:Massimo_Cellino property:place_of_birth ?i } } . ?i rdf:type ontology:administrative_territorial_entity }
[]