Simple Question (Direct)
Simple Question
Q1673390
P21
Q290
USER
Which sex does Isaac Goldberg have ?
(Q1673390,P21,c(Q290))
action filter_type
action find
entity Q1673390
relation P21
type Q290
['Q1673390', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q290 . resource:Q1673390 property:P21 ?n }
Isaac Goldberg
action filter_type
action find
entity Isaac Goldberg
relation gender
type sex
['Isaac Goldberg', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:sex . resource:Isaac_Goldberg property:gender ?n }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q1673390,P21,c(Q290))
action filter_type
action find
entity Q1673390
relation P21
type Q290
Isaac Goldberg has a [ANSWER]
['Q1673390', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q290 . resource:Q1673390 property:P21 ?n }
male
Isaac Goldberg has a male
male
action filter_type
action find
entity Isaac Goldberg
relation gender
type sex
['Isaac Goldberg', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:sex . resource:Isaac_Goldberg property:gender ?n }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1673390
P655
Q571
USER
Which book was translated by that person ?
(c(Q571),P655,Q6581097)
action filter_type
action find_reverse
entity Q1673390
relation P655
type Q571
[{'concept': 'Q571'}, 'P655', 'Q6581097']
SELECT DISTINCT ?g WHERE { ?g property:P655 resource:Q1673390 . ?g rdf:type ontology:Q571 }
Isaac Goldberg
action filter_type
action find_reverse
entity Isaac Goldberg
relation translator
type book
[{'concept': 'book'}, 'translator', 'male']
SELECT DISTINCT ?g WHERE { ?g property:translator resource:Isaac_Goldberg . ?g rdf:type ontology:book }
[]
book
Q19053183
SYSTEM
Aunt Zeze's Tears
Q19053183
(c(Q571),P655,Q6581097)
action filter_type
action find_reverse
entity Q1673390
relation P655
type Q571
[ANSWER] was translated by that person
[{'concept': 'Q571'}, 'P655', 'Q6581097']
SELECT DISTINCT ?g WHERE { ?g property:P655 resource:Q1673390 . ?g rdf:type ontology:Q571 }
Aunt Zeze's Tears
Aunt Zeze's Tears was translated by that person
Aunt Zeze's Tears
action filter_type
action find_reverse
entity Isaac Goldberg
relation translator
type book
[{'concept': 'book'}, 'translator', 'male']
SELECT DISTINCT ?g WHERE { ?g property:translator resource:Isaac_Goldberg . ?g rdf:type ontology:book }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P291
Q56061 Q571
USER
Which administrative territories are the places of publication of around 7 books ?
(c(Q571),P291,c(Q56061))
action approx
action find_reverse_tuple_counts
relation P291
type Q56061
type Q571
value 7
[{'concept': 'Q571'}, 'P291', {'concept': 'Q56061'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?p ) AS ?y ) WHERE { ?p property:P291 ?f . ?f rdf:type ontology:Q56061 . ?p rdf:type ontology:Q571 } GROUP BY ?f } . FILTER ( ?y = 7 ) }
action approx
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type book
value 7
[{'concept': 'book'}, 'place of publication', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?p ) AS ?y ) WHERE { ?p property:place_of_publication ?f . ?f rdf:type ontology:administrative_territorial_entity . ?p rdf:type ontology:book } GROUP BY ?f } . FILTER ( ?y = 7 ) }
[]
administrative territorial entity book
Q72 Q649 Q2807
SYSTEM
Zürich, Moscow, Madrid
Q807 Q909146 Q2536016 Q2512312 Q190583 Q27918 Q736775 Q2035368 Q3897 Q38511 Q3711 Q130191 Q203619 Q393 Q80670 Q25286 Q1544563 Q490595 Q3808 Q501661 Q982367 Q3150 Q484678 Q11974 Q151920 Q13375 Q36378 Q4093 Q2560090 Q10305 Q3404679 Q23337 Q33959 Q987 Q8692 Q23051 Q586 Q2656 Q1289 Q4581188 Q8851 Q10690 Q25748 Q9920 Q15688 Q12155 Q323801 Q15682 Q15684 Q170497 Q1757 Q41876 Q1754 Q749 Q99151 Q39561 Q48329 Q3992 Q2132 Q7880 Q1930 Q949651 Q3846 Q81046 Q597 Q5831 Q22889 Q12892 Q365 Q5836 Q132572 Q6157 Q12411 Q1718 Q43631 Q8818 Q11125 Q8810 Q15283655 Q4713350 Q428829 Q1335 Q1895 Q1034159 Q1155 Q103717 Q28911 Q3400328 Q14323 Q186237 Q14325 Q180233 Q484799 Q14328 Q576110 Q5083 Q1524 Q1489 Q209055 Q2020203 Q3561 Q40347 Q406 Q234178 Q739452 Q8678 Q15468 Q490 Q6346 Q495 Q2044 Q887 Q576165 Q5465 Q2141 Q54217 Q23436 Q1679567 Q2814 Q15093 Q2280 Q162279 Q3141 Q671288 Q72 Q17151 Q1490 Q1191195 Q102217 Q237 Q334 Q239 Q16559 Q16554 Q16555 Q16557 Q486306 Q621 Q8686 Q994 Q1513 Q3130 Q192517 Q1296 Q1297 Q3033 Q936183 Q1563 Q170263 Q35381 Q1748 Q45412 Q87 Q40269 Q2081145 Q1024911 Q193478 Q5112 Q2103 Q1741 Q178093 Q191133 Q11959 Q35493 Q538915 Q78 Q49111 Q71 Q2617448 Q37100 Q38022 Q36405 Q270 Q286048 Q1235510 Q15678 Q1931927 Q49241 Q3183 Q172157 Q1781 Q33935 Q582121 Q16567 Q1861 Q14318 Q14314 Q5092 Q15090 Q134620 Q956 Q15095 Q15098 Q1492 Q437 Q8745 Q1479 Q13580 Q2766547 Q18419 Q2941325 Q12258 Q202158 Q1017331 Q2090 Q2807 Q49145 Q42735 Q242478 Q327022 Q12225 Q23154 Q220 Q340 Q342 Q10282 Q26421 Q429676 Q672545 Q188304 Q617 Q634054 Q472 Q37995 Q6576 Q6761 Q28249 Q13666 Q761 Q9580 Q569661 Q2634 Q8356 Q3584 Q49179 Q735583 Q1726 Q1724 Q11967 Q1729 Q8717 Q3519 Q64 Q65 Q159232 Q207891 Q2028 Q61 Q62 Q3395358 Q683512 Q18125 Q3889 Q9125 Q5818 Q1867 Q204382 Q12439 Q269 Q27393 Q470445 Q126148 Q1352 Q771986 Q49229 Q33405 Q79990 Q8385 Q493794 Q6537 Q6106 Q2391194 Q10313 Q72259 Q1295 Q19785 Q647 Q641 Q193367 Q727 Q649 Q59169 Q669171 Q204720 Q206988 Q3012 Q24826 Q15699 Q485329 Q15696 Q15695 Q985271 Q28848 Q128306 Q15088 Q3366952 Q997170 Q203263 Q580 Q213898 Q193180 Q585 Q8757 Q34370 Q47048 Q178277 Q192155 Q883 Q207639 Q41262 Q6441 Q125080 Q2066 Q12303 Q100 Q156990 Q3834 Q81137 Q40840 Q955640 Q281839 Q485172 Q26793 Q3426 Q10686 Q211020 Q181854 Q648 Q487786 Q12233 Q172 Q216 Q646620 Q350 Q720627 Q13972 Q215277 Q8826 Q129610 Q179385 Q1348 Q29303 Q628667 Q127159 Q14336 Q34647
(c(Q571),P291,c(Q56061))
action approx
action find_reverse_tuple_counts
relation P291
type Q56061
type Q571
value 7
[ANSWERS] are the places of publication of around 7 books
[{'concept': 'Q571'}, 'P291', {'concept': 'Q56061'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?p ) AS ?y ) WHERE { ?p property:P291 ?f . ?f rdf:type ontology:Q56061 . ?p rdf:type ontology:Q571 } GROUP BY ?f } . FILTER ( ?y = 7 ) }
Lausanne Godalming Crickhowell Eppegem Mikkeli Bad Rappenau Toronto Tremadog Luanda Turku Belgrade Norwich Kemi Szczecin Mühlacker Uppsala Hellerup Daytona Beach Yaoundé Schleswig Mineola Jena Berkeley Las Palmas de Gran Canaria Tiberias Pisa Fribourg Glasgow Athol Zaragoza Crumlin Salt Lake City Nice New Delhi Bilbao Swansea Bonn Palermo Grenoble Straume Málaga Cardiff Gävle Haarlem Ávila Soria Nampula Cádiz Segovia Gloucester Helsinki Reims Stockholm Groningen Ourense Burbank Mariehamn Liège Victoria Toulouse Ottawa Wilmington Minden Charleroi Lisbon Melilla Bath Antwerp Cologne Toledo Tiraspol Seinäjoki Pontevedra Düsseldorf Leiden Valencia Lugo Granada Elverum Alcones Caernarfon Montevideo Petrozavodsk Harstad Busto Arsizio Rovaniemi Lahti St Athan Mérida Joensuu Logroño Pori Marbella Santa Cruz de Tenerife Nauvoo Seattle Athens Mexico City Torquay Rhyl Algiers Norman Istanbul Bangor Garden City Rio de Janeiro Badalona Milan Indianapolis Turin Florence Yekaterinburg Warsaw Cape Town Halifax Norwalk Edinburgh Jakobstad Halle (Saale) Ciudad Real Minsk Kuopio Melbourne Bend Zürich Thessaloniki Tokyo Mold Vitebsk Vatican City Singapore Brussels Austin Denver Houston Dallas Pensacola Versailles Shanghai Tbilisi Nagpur Sydney Boulder Ghent Chicago Göttingen Tonbridge Havana Chester Colombo Copenhagen Coimbra Alexandria Porto Alegre Milborne Port Welshpool Buda Adelaide Bochum Vienna Poughkeepsie Fátima Alicante Almaty Mjölby Basel Cambridge Geneva Edinburgh Auckland St. Louis Aberdeen Warsaw New Glasgow, Nova Scotia Dolgellau Cáceres Bracon Ash Lexington Perth Winchester Budapest Tel Aviv Bradenton Columbus Bangkok Vitoria-Gasteiz Santiago de Compostela Baltimore Lleida Jyväskylä Beijing Albacete Cuenca Barcelona Ljubljana Vigo Bordeaux Metro Manila 's-Hertogenbosch Brooklyn Corbin Sabadell Hämeenlinna Westport, County Mayo Nuremberg Madrid New Haven Olympia Levoča Rockville Murcia Bristol Rome Montreal Quimper Pamplona Dordrecht Sereď Barmouth Sunderland Padua Conwy Sofia Yangon Irkutsk Livorno Concord Messina Białystok Burgos Königstein im Taunus Naples Valladolid Nový Jičín Worcester Ylivieska Munich Saarbrücken Huesca Erfurt Seville Bari Berlin Los Angeles Santa Cruz Kokkola Verona Washington, D.C. San Francisco Kidwelly Savonlinna Manchester Maputo Winterthur Córdoba Taipei Kouvola Detroit Tashkent Herning Prostějov Tangier Chennai Chepstow Durham Little Rock Christchurch Ostrava Dubuque Vicenza Portland Saint-Idesbald Donostia/San Sebastián Portsmouth Dortmund Harpenden Rennes Venice Porvoo Amsterdam Moscow Mo i Rana Newtown Hereford Cheltenham Ulm Liverpool León Ferrol Zamora Salamanca The Dalles Saint Paul Denton Tarragona Alta Waterville Athens Łódź Preveza Kajaani Oslo A Coruña Rotterdam Oulu Montvale Kotka Novosibirsk Chichester Nottingham Montpellier Vaasa Essen Jerez de la Frontera Boston Monmouth Konstanz Olomouc Tampere Glasgow Englewood Cliffs, New Jersey Ann Arbor Bergen Voronezh Belfast Imatra Lappeenranta Lille Orihuela Santander Toronto Vilnius Estella-Lizarra Cambridge Kanhangad Tartu Jaffna Palma Galway Greenwich Kolkata Canterbury Spangenberg Bletchley Teruel Johannesburg
Zürich, Moscow and Madrid are the places of publication of around 7 books
Zürich Moscow Madrid
action approx
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type book
value 7
[{'concept': 'book'}, 'place of publication', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?p ) AS ?y ) WHERE { ?p property:place_of_publication ?f . ?f rdf:type ontology:administrative_territorial_entity . ?p rdf:type ontology:book } GROUP BY ?f } . FILTER ( ?y = 7 ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q649
P237
Q17335294
USER
Which coat of arms serves as the ensign for that administrative territory ?
(Q649,P237,c(Q17335294))
action filter_type
action find
entity Q649
relation P237
type Q17335294
['Q649', 'P237', {'concept': 'Q17335294'}]
SELECT DISTINCT ?h WHERE { resource:Q649 property:P237 ?h . ?h rdf:type ontology:Q17335294 }
Moscow
action filter_type
action find
entity Moscow
relation coat of arms
type flag or coat of arms
['Moscow', 'coat of arms', {'concept': 'flag or coat of arms'}]
SELECT DISTINCT ?h WHERE { resource:Moscow property:coat_of_arms ?h . ?h rdf:type ontology:flag_or_coat_of_arms }
[]
flag or coat of arms
Clarification for simple ques.
Q72
SYSTEM
Did you mean Zürich ?
Q72 Q649 Q2807
(Q72,P237,c(Q17335294)) (Q649,P237,c(Q17335294)) (Q2807,P237,c(Q17335294))
[ANSWER]
['Q72', 'P237', {'concept': 'Q17335294'}] ['Q649', 'P237', {'concept': 'Q17335294'}] ['Q2807', 'P237', {'concept': 'Q17335294'}]
SELECT DISTINCT ?h WHERE { resource:Q649 property:P237 ?h . ?h rdf:type ontology:Q17335294 }
Zürich Moscow Madrid
Did you mean Zürich ?
Zürich
['Zürich', 'coat of arms', {'concept': 'flag or coat of arms'}] ['Moscow', 'coat of arms', {'concept': 'flag or coat of arms'}] ['Madrid', 'coat of arms', {'concept': 'flag or coat of arms'}]
SELECT DISTINCT ?h WHERE { resource:Moscow property:coat_of_arms ?h . ?h rdf:type ontology:flag_or_coat_of_arms }
[]
Simple Question (Coreferenced)
USER
No, I meant Moscow. Could you tell me the answer for that?
(Q649,P237,c(Q17335294))
Q649
['Q649', 'P237', {'concept': 'Q17335294'}]
['Moscow', 'coat of arms', {'concept': 'flag or coat of arms'}]
[]
Q2079384
SYSTEM
Coat of arms of Moscow
Q2079384
(Q649,P237,c(Q17335294))
action filter_type
action find
entity Q649
relation P237
type Q17335294
[ANSWER] serves as the ensign for that administrative territory
['Q649', 'P237', {'concept': 'Q17335294'}]
SELECT DISTINCT ?h WHERE { resource:Q649 property:P237 ?h . ?h rdf:type ontology:Q17335294 }
Coat of arms of Moscow
Coat of arms of Moscow serves as the ensign for that administrative territory
Coat of arms of Moscow
action filter_type
action find
entity Moscow
relation coat of arms
type flag or coat of arms
['Moscow', 'coat of arms', {'concept': 'flag or coat of arms'}]
SELECT DISTINCT ?h WHERE { resource:Moscow property:coat_of_arms ?h . ?h rdf:type ontology:flag_or_coat_of_arms }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q2079384 Q649
P237
Q56061
USER
Is that one the coat of arms for Moscow ?
(Q649,P237,Q2079384)
action is_in
entity Q2079384
action find
entity Q649
relation P237
['Q649', 'P237', 'Q2079384']
ASK WHERE { resource:Q649 property:P237 resource:Q2079384 }
Coat of arms of Moscow Moscow
action is_in
entity Coat of arms of Moscow
action find
entity Moscow
relation coat of arms
['Moscow', 'coat of arms', 'Coat of arms of Moscow']
ASK WHERE { resource:Moscow property:coat_of_arms resource:Coat_of_arms_of_Moscow }
[]
administrative territorial entity
SYSTEM
YES
(Q649,P237,Q2079384)
action is_in
entity Q2079384
action find
entity Q649
relation P237
[ANSWER]
['Q649', 'P237', 'Q2079384']
ASK WHERE { resource:Q649 property:P237 resource:Q2079384 }
Yes
action is_in
entity Coat of arms of Moscow
action find
entity Moscow
relation coat of arms
['Moscow', 'coat of arms', 'Coat of arms of Moscow']
ASK WHERE { resource:Moscow property:coat_of_arms resource:Coat_of_arms_of_Moscow }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q2807 Q19592761
P6
Q502895
USER
Does Madrid serve as the head of government for Manuela Carmena ?
(Q2807,P6,Q19592761)
action is_in
entity Q19592761
action find
entity Q2807
relation P6
['Q2807', 'P6', 'Q19592761']
ASK WHERE { resource:Q2807 property:P6 resource:Q19592761 }
Madrid Manuela Carmena
action is_in
entity Manuela Carmena
action find
entity Madrid
relation head of government
['Madrid', 'head of government', 'Manuela Carmena']
ASK WHERE { resource:Madrid property:head_of_government resource:Manuela_Carmena }
[]
common name
SYSTEM
YES
(Q2807,P6,Q19592761)
action is_in
entity Q19592761
action find
entity Q2807
relation P6
[ANSWER]
['Q2807', 'P6', 'Q19592761']
ASK WHERE { resource:Q2807 property:P6 resource:Q19592761 }
Yes
action is_in
entity Manuela Carmena
action find
entity Madrid
relation head of government
['Madrid', 'head of government', 'Manuela Carmena']
ASK WHERE { resource:Madrid property:head_of_government resource:Manuela_Carmena }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q662493 Q19053183
P50
Q502895
USER
Which people were the writers of Aunt Zeze's Tears or Starfighters of Adumar ?
OR((Q19053183,P50,c(Q502895)), (Q662493,P50,c(Q502895)))
action filter_type
action union
action find
entity Q19053183
relation P50
action find
entity Q662493
relation P50
type Q502895
{'OR': [['Q19053183', 'P50', {'concept': 'Q502895'}], ['Q662493', 'P50', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q19053183 property:P50 ?u } UNION { resource:Q662493 property:P50 ?u } } . ?u rdf:type ontology:Q502895 }
Starfighters of Adumar Aunt Zeze's Tears
action filter_type
action union
action find
entity Aunt Zeze's Tears
relation author
action find
entity Starfighters of Adumar
relation author
type common name
{'OR': [["Aunt Zeze's Tears", 'author', {'concept': 'common name'}], ['Starfighters of Adumar', 'author', {'concept': 'common name'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Aunt_Zeze's_Tears property:author ?u } UNION { resource:Starfighters_of_Adumar property:author ?u } } . ?u rdf:type ontology:common_name }
[]
common name
Q301632 Q10272598
SYSTEM
Aaron Allston, Emília Moncorvo Bandeira de Melo
Q301632 Q10272598
OR((Q19053183,P50,c(Q502895)), (Q662493,P50,c(Q502895)))
action filter_type
action union
action find
entity Q19053183
relation P50
action find
entity Q662493
relation P50
type Q502895
[ANSWERS] were the writers of Aunt Zeze's Tears or Starfighters of Adumar
{'OR': [['Q19053183', 'P50', {'concept': 'Q502895'}], ['Q662493', 'P50', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q19053183 property:P50 ?u } UNION { resource:Q662493 property:P50 ?u } } . ?u rdf:type ontology:Q502895 }
Aaron Allston Emília Moncorvo Bandeira de Melo
Aaron Allston and Emília Moncorvo Bandeira de Melo were the writers of Aunt Zeze's Tears or Starfighters of Adumar
Aaron Allston Emília Moncorvo Bandeira de Melo
action filter_type
action union
action find
entity Aunt Zeze's Tears
relation author
action find
entity Starfighters of Adumar
relation author
type common name
{'OR': [["Aunt Zeze's Tears", 'author', {'concept': 'common name'}], ['Starfighters of Adumar', 'author', {'concept': 'common name'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Aunt_Zeze's_Tears property:author ?u } UNION { resource:Starfighters_of_Adumar property:author ?u } } . ?u 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 do atleast 2987 people know to play ?
(c(Q502895),P1303,c(Q34379))
action atleast
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2987
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?k ) AS ?t ) WHERE { ?k property:P1303 ?r . ?r rdf:type ontology:Q34379 . ?k rdf:type ontology:Q502895 } GROUP BY ?r } . FILTER ( ?t >= 2987 ) }
action atleast
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2987
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?k ) AS ?t ) WHERE { ?k property:instrument ?r . ?r rdf:type ontology:musical_instrument . ?k rdf:type ontology:common_name } GROUP BY ?r } . FILTER ( ?t >= 2987 ) }
[]
musical instrument common name
Q5994 Q8355
SYSTEM
piano, violin
Q5994 Q8355
(c(Q502895),P1303,c(Q34379))
action atleast
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2987
Atleast 2987 people know about [ANSWERS]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?k ) AS ?t ) WHERE { ?k property:P1303 ?r . ?r rdf:type ontology:Q34379 . ?k rdf:type ontology:Q502895 } GROUP BY ?r } . FILTER ( ?t >= 2987 ) }
piano violin
Atleast 2987 people know about piano and violin
piano violin
action atleast
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2987
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?k ) AS ?t ) WHERE { ?k property:instrument ?r . ?r rdf:type ontology:musical_instrument . ?k rdf:type ontology:common_name } GROUP BY ?r } . FILTER ( ?t >= 2987 ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q5994
P61
Q502895
USER
Who discovered or invented that musical instrument ?
(Q5994,P61,c(Q502895))
action filter_type
action find
entity Q5994
relation P61
type Q502895
['Q5994', 'P61', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q502895 . resource:Q5994 property:P61 ?b }
piano
action filter_type
action find
entity piano
relation discoverer or inventor
type common name
['piano', 'discoverer or inventor', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:common_name . resource:piano property:discoverer_or_inventor ?b }
[]
common name
Clarification for simple ques.
Q8355
SYSTEM
Did you mean violin ?
Q5994 Q8355
(Q5994,P61,c(Q502895)) (Q8355,P61,c(Q502895))
[ANSWER]
['Q5994', 'P61', {'concept': 'Q502895'}] ['Q8355', 'P61', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q502895 . resource:Q5994 property:P61 ?b }
piano violin
Did you mean violin ?
violin
['piano', 'discoverer or inventor', {'concept': 'common name'}] ['violin', 'discoverer or inventor', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:common_name . resource:piano property:discoverer_or_inventor ?b }
[]
Simple Question (Coreferenced)
USER
No, I meant piano. Could you tell me the answer for that?
(Q5994,P61,c(Q502895))
Q5994
['Q5994', 'P61', {'concept': 'Q502895'}]
['piano', 'discoverer or inventor', {'concept': 'common name'}]
[]
Q301597
SYSTEM
Bartolomeo Cristofori
Q301597
(Q5994,P61,c(Q502895))
action filter_type
action find
entity Q5994
relation P61
type Q502895
[ANSWER] discovered or invented that musical instrument
['Q5994', 'P61', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q502895 . resource:Q5994 property:P61 ?b }
Bartolomeo Cristofori
Bartolomeo Cristofori discovered or invented that musical instrument
Bartolomeo Cristofori
action filter_type
action find
entity piano
relation discoverer or inventor
type common name
['piano', 'discoverer or inventor', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:common_name . resource:piano property:discoverer_or_inventor ?b }
[]