Simple Question (Direct)
Simple Question
Q2619059
P106
Q12737077
USER
What is the profession of Ali Gökdemir ?
(Q2619059,P106,c(Q12737077))
action filter_type
action find
entity Q2619059
relation P106
type Q12737077
['Q2619059', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { resource:Q2619059 property:P106 ?a . ?a rdf:type ontology:Q12737077 }
Ali Gökdemir
action filter_type
action find
entity Ali Gökdemir
relation occupation
type occupation
['Ali Gökdemir', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { resource:Ali_Gökdemir property:occupation ?a . ?a rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q2619059,P106,c(Q12737077))
action filter_type
action find
entity Q2619059
relation P106
type Q12737077
The profession of Ali Gökdemir is an [ANSWER]
['Q2619059', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { resource:Q2619059 property:P106 ?a . ?a rdf:type ontology:Q12737077 }
association football player
The profession of Ali Gökdemir is an association football player
association football player
action filter_type
action find
entity Ali Gökdemir
relation occupation
type occupation
['Ali Gökdemir', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { resource:Ali_Gökdemir property:occupation ?a . ?a rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2619059
P54
Q1194951
USER
Which national sports team is that person a member of ?
(Q937857,P54,c(Q1194951))
action filter_type
action find
entity Q2619059
relation P54
type Q1194951
['Q937857', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?n WHERE { resource:Q2619059 property:P54 ?n . ?n rdf:type ontology:Q1194951 }
Ali Gökdemir
action filter_type
action find
entity Ali Gökdemir
relation member of sports team
type national sports team
['association football player', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?n WHERE { resource:Ali_Gökdemir property:member_of_sports_team ?n . ?n rdf:type ontology:national_sports_team }
[]
national sports team
Q180800
SYSTEM
Azerbaijan national football team
Q180800
(Q937857,P54,c(Q1194951))
action filter_type
action find
entity Q2619059
relation P54
type Q1194951
And [ANSWER] is that person a member of
['Q937857', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?n WHERE { resource:Q2619059 property:P54 ?n . ?n rdf:type ontology:Q1194951 }
Azerbaijan national football team
And Azerbaijan national football team is that person a member of
Azerbaijan national football team
action filter_type
action find
entity Ali Gökdemir
relation member of sports team
type national sports team
['association football player', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?n WHERE { resource:Ali_Gökdemir property:member_of_sports_team ?n . ?n rdf:type ontology:national_sports_team }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q242274
P417
Q502895 Q12737077
USER
Which people are the patron saints of less number of occupations than Dorothea of Caesarea ?
(c(Q12737077),P417,c(Q502895))
action less
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find_reverse
entity Q242274
relation P417
type Q12737077
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?m ) AS ?e ) WHERE { ?m property:P417 ?y . ?m rdf:type ontology:Q12737077 . ?y rdf:type ontology:Q502895 } GROUP BY ?y } . FILTER ( ?e < ?z ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?z ) WHERE { ?g property:P417 resource:Q242274 . ?g rdf:type ontology:Q12737077 } } }
Dorothea of Caesarea
action less
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find_reverse
entity Dorothea of Caesarea
relation patron saint
type occupation
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?m ) AS ?e ) WHERE { ?m property:patron_saint ?y . ?m rdf:type ontology:occupation . ?y rdf:type ontology:common_name } GROUP BY ?y } . FILTER ( ?e < ?z ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?z ) WHERE { ?g property:patron_saint resource:Dorothea_of_Caesarea . ?g rdf:type ontology:occupation } } }
[]
common name occupation
Q9682 Q191479 Q346
SYSTEM
Elizabeth II, Tadeusz Kościuszko, Louis IX of France
Q2366998 Q561838 Q380092 Q129674 Q133704 Q43945 Q3922154 Q172390 Q1050218 Q464959 Q394727 Q268087 Q1141472 Q61914 Q2916248 Q516729 Q349086 Q315640 Q3893243 Q719683 Q331697 Q1553720 Q351635 Q732865 Q3759661 Q696682 Q118087 Q320199 Q1281133 Q236974 Q378656 Q61620 Q3776432 Q128267 Q2987904 Q2574015 Q101090 Q1834624 Q174044 Q1284098 Q1249745 Q47144 Q240610 Q31966 Q603655 Q44024 Q314700 Q3940728 Q44020 Q313807 Q149315 Q676555 Q2360539 Q244383 Q3615108 Q244380 Q235857 Q287916 Q192236 Q539890 Q102131 Q505937 Q44091 Q181715 Q2617668 Q670456 Q1346958 Q243122 Q51885 Q238744 Q3747052 Q153024 Q3949261 Q234697 Q1284971 Q132797 Q132100 Q188411 Q727316 Q4011186 Q233067 Q3838743 Q686948 Q733308 Q309953 Q118081 Q358325 Q537686 Q312057 Q357093 Q115550 Q1502088 Q8413 Q558148 Q160373 Q515953 Q1274242 Q443392 Q379685 Q191479 Q42887 Q3745904 Q4210004 Q4282480 Q177903 Q3859960 Q2697247 Q203437 Q457903 Q207113 Q8018 Q315312 Q43675 Q618214 Q216946 Q728245 Q384364 Q132113 Q33923 Q81634 Q161775 Q221522 Q43954 Q44047 Q37599 Q316599 Q232975 Q122376 Q145746 Q15284282 Q167477 Q380345 Q288295 Q297742 Q218921 Q316295 Q183332 Q4014956 Q159834 Q63070 Q134666 Q867765 Q914115 Q1289858 Q379914 Q3906150 Q3876580 Q189776 Q339541 Q965463 Q196527 Q160922 Q1115725 Q336731 Q913528 Q231256 Q560531 Q4161703 Q174880 Q1270991 Q235863 Q346 Q131159 Q190388 Q3924139 Q180936 Q83198 Q2142772 Q2182480 Q7226 Q2005417 Q243427 Q2456880 Q417686 Q185117 Q303640 Q241423 Q43999 Q447384 Q1747656 Q6732208 Q1393825 Q64196 Q2824511 Q3887342 Q310686 Q359259 Q12871 Q9156208 Q336704 Q181489 Q369691 Q44269 Q587596 Q372668 Q831571 Q3779522 Q2456500 Q2352076 Q977571 Q232453 Q58559 Q445357 Q359878 Q190240 Q210096 Q1976199 Q3724316 Q1343711 Q3663117 Q534691 Q160374 Q442516 Q920226 Q283447 Q26486 Q158504 Q130005 Q740907 Q44258 Q70991 Q318974 Q312314 Q254896 Q3947956 Q11905449 Q1172641 Q3738578 Q4026158 Q367208 Q469978 Q164294 Q2270111 Q103556 Q129603 Q3561124 Q1110905 Q335127 Q651226 Q355884 Q42827 Q159862 Q543320 Q318347 Q3958514 Q317131 Q257960 Q234689 Q385253 Q208961 Q235619 Q523662 Q284323 Q59071 Q1383532 Q160445 Q1269112 Q2424767 Q459032 Q131945 Q9682 Q127385 Q470608 Q196157 Q310633 Q208331
(c(Q12737077),P417,c(Q502895))
action less
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find_reverse
entity Q242274
relation P417
type Q12737077
[ANSWERS] are the patron saints of less number of occupations than Dorothea of Caesarea
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?m ) AS ?e ) WHERE { ?m property:P417 ?y . ?m rdf:type ontology:Q12737077 . ?y rdf:type ontology:Q502895 } GROUP BY ?y } . FILTER ( ?e < ?z ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?z ) WHERE { ?g property:P417 resource:Q242274 . ?g rdf:type ontology:Q12737077 } } }
Eurosia Alexander of Bergamo Francis Borgia, 4th Duke of Gandía Andrew Bobola Martin of Tours Jude the Apostle Prisco di Nocera Martin I Catald Onuphrius Agnes of Bohemia Pudentiana Roger of Cannae Gotthard of Hildesheim Alexander of Comana Sebaldus Leopold III, Margrave of Austria Francis of Paola Pamphilus of Sulmona Ludger Saint David Guy of Anderlecht Stanislaus of Szczepanów Vitalis of Milan Genesio di Brescello Arnold von Arnoldsweiler Ludmila of Bohemia Apollinaris of Ravenna Tudwal Radegund Saint Pantaleon Cunigunde of Luxembourg Gonçalo de Amarante Joseph Tryphon of Pechenga Nestor of Magydos Eleuterus Gummarus Alexander Nevsky Turibius of Astorga Mamilian of Palermo Linus Euphemia Mark the Evangelist Fidelis of Como Athanasius of Alexandria Joachim Romano martire Saint Matthias Joseph of Cupertino Silverius Francis of Assisi Donatus of Arezzo Rose of Lima Anatolia martire Saint Denis Elizabeth of Aragon Finbarr of Cork Thomas Becket Lazarus of Bethany Marcellus I Vincent Pallotti Saint Dominic Thérèse of Lisieux Saint Cunera Procopius of Sázava Judas Cyriacus Ferdinand III of Castile Thecla Peter of Verona Saint Fulk Rita of Cascia Saint Venera Maria Goretti La Mosca Victor Maurus Mark Anterus Bernard of Clairvaux Renaud de Montauban Vicinius of Sarsina Salome Lucido di Aquara Alban of Mainz Medardus Gregory the Illuminator Pope Celestine V Ivo of Kermartin Angelus of Jerusalem Saint Casimir Saint Spyridon Nicholas of Flüe Genesius of Arles Constantine the Great Leonard of Noblac Marcellinus Maximilian of Lorch Romanus of Caesarea Saint Bibiana Isidore the Laborer Tadeusz Kościuszko Clement I Fiorenzo di Bastia Venantius of Camerino Saint Martha Stephen I of Hungary Modestinus Catellus of Castellammare Stanislaus Kostka Saint Bavo Hippolytus Augustine of Hippo Januarius Philip the Apostle Aper of Toul Charles Borromeo Marziano di Siracusa Ursus of Aosta Pontian Peter Sixtus I Stephen John of Nepomuk Leo I James, son of Alphaeus Theodore of Amasea Saint Maurice Anastasia of Sirmium Callixtus I Joseph Adolphus Anthony of Padua Saint Maurus Justina of Padua Margaret the Virgin Saint Eustace Bernardino of Siena Saint Sebastian Vitaliano da Capua Hubertus Mary Magdalene Stephen I Sossius Prosdocimus Saint Bassian Saint Cajetan Placidus Nicolò Politi Zeno of Verona Rufinus of Assisi Rumbold of Mechelen Saint Wenceslaus I, Duke of Bohemia Celestine I Saint Giovanni Battista de Rossi Pancras of Rome Brice of Tours Francis de Sales Suitbert of Kaiserswerdt Dimitry Prilutsky Teresa of Ávila Eugenius of Carthage Genevieve Louis IX of France Fabian John of the Cross Prospero da Centuripe Saint Gall Pius I Gereon Felice Joan of Arc Privat de Mende Adalbert of Prague Tryphon, Respicius, and Nympha Nazarius Justin Martyr Marcian of Tortona Juliana of Nicomedia James Victoria, Anatolia, and Audax Saturninus of Cagliari Magnus of Cuneo Valerius of Saragossa Adelaide, Abbess of Vilich Adjutor Ottone Frangipane Dionysius the Areopagite Saint Emeric of Hungary Simon the Zealot Anthony Sulpicius Severus Eusebius of Vercelli Saint Ursula Saint Nicholas Magnus of Anagni John the Merciful Eusebius of Esztergom Guido of Acqui Eulalia of Barcelona Francis Solanus Caprasius of Lérins Martha Leo IX Henry Erasmus of Formiae Cyprian Agnes of Rome Gaudentius of Novara Emilianus of Trevi Ephysius Castrese di Sessa Paschal Baylon Norbert of Xanten Germanus of Auxerre Michael de Sanctis Lambert of Maastricht Ladislaus I of Hungary Clement of Ohrid Edward the Confessor Barbatus of Benevento Basil of Caesarea Hildegard of Bingen Vincent of Saragossa Bruno of Cologne Anastasius of Persia San Secondo Anastasi de Lleida Calogerus Falco di Palena Possidonio Saint Remigius Devota Saint Anna Maternus Henry II, Holy Roman Emperor Caesarius of Africa Acisclus Simplicio of Olbia Agabus Viktor of Xanten Josaphat Kuntsevych Gregory I Elizabeth of Hungary Marina the Monk Sigismund of Burgundy Severinus of Sanseverino Vincent Ferrer Felicitas of Rome Monica of Hippo Agostino Novello Brendan Gertrude of Nivelles Syrus of Pavia Eulalia of Mérida Peter de Regalado Rainerius Saint Boniface Saint Ninian Anthony of Apamea Elizabeth Ann Seton Pius V Elizabeth II Sixtus II Peter of Alcantara Louis of Toulouse Demetrius of Thessaloniki Olaf II of Norway
Elizabeth II, Tadeusz Kościuszko and Louis IX of France are the patron saints of less number of occupations than Dorothea of Caesarea
Elizabeth II Tadeusz Kościuszko Louis IX of France
action less
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find_reverse
entity Dorothea of Caesarea
relation patron saint
type occupation
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?m ) AS ?e ) WHERE { ?m property:patron_saint ?y . ?m rdf:type ontology:occupation . ?y rdf:type ontology:common_name } GROUP BY ?y } . FILTER ( ?e < ?z ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?z ) WHERE { ?g property:patron_saint resource:Dorothea_of_Caesarea . ?g rdf:type ontology:occupation } } }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P35
Q1048835
USER
How many political territories have that person as their head of state ?
(c(Q1048835),P35,Q9682)
[{'concept': 'Q1048835'}, 'P35', 'Q9682']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:Q48352 resource:Q402982 . ?z rdf:type ontology:Q1048835 }
[{'concept': 'political territorial entity'}, 'head of state', 'Elizabeth II']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:head_of_state resource:Elizabeth_II . ?z rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Quantitative|Count|Single entity type|Clarification
Q346
SYSTEM
Did you mean Louis IX of France ?
(c(Q1048835),P35,Q9682) (c(Q1048835),P35,Q191479) (c(Q1048835),P35,Q346)
[ANSWER]
[{'concept': 'Q1048835'}, 'P35', 'Q9682'] [{'concept': 'Q1048835'}, 'P35', 'Q191479'] [{'concept': 'Q1048835'}, 'P35', 'Q346']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:Q48352 resource:Q402982 . ?z rdf:type ontology:Q1048835 }
Did you mean Louis IX of France ?
Louis IX of France
[{'concept': 'political territorial entity'}, 'head of state', 'Elizabeth II'] [{'concept': 'political territorial entity'}, 'head of state', 'Tadeusz Kościuszko'] [{'concept': 'political territorial entity'}, 'head of state', 'Louis IX of France']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:head_of_state resource:Elizabeth_II . ?z rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Elizabeth II. Could you tell me the answer for that?
(c(Q1048835),P35,Q9682)
Q9682
[{'concept': 'Q1048835'}, 'P35', 'Q9682']
[{'concept': 'political territorial entity'}, 'head of state', 'Elizabeth II']
[]
SYSTEM
15
Q763 Q766 Q778 Q664 Q408 Q691 Q757 Q685 Q18221 Q16 Q769 Q9648 Q9676 Q781 Q785
(c(Q1048835),P35,Q9682)
[ANSWER]
[{'concept': 'Q1048835'}, 'P35', 'Q9682']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:Q48352 resource:Q402982 . ?z rdf:type ontology:Q1048835 }
Saint Kitts and Nevis Jamaica The Bahamas New Zealand Australia Papua New Guinea Saint Vincent and the Grenadines Solomon Islands Turks and Caicos Islands Canada Grenada Falkland Islands Isle of Man Antigua and Barbuda Jersey
15
[{'concept': 'political territorial entity'}, 'head of state', 'Elizabeth II']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:head_of_state resource:Elizabeth_II . ?z rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments are played by exactly 5 people ?
(c(Q502895),P1303,c(Q34379))
action equal
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 5
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?d ) AS ?z ) WHERE { ?d property:P1303 ?g . ?g rdf:type ontology:Q34379 . ?d rdf:type ontology:Q502895 } GROUP BY ?g } . FILTER ( ?z = 5 ) }
action equal
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 5
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?d ) AS ?z ) WHERE { ?d property:instrument ?g . ?g rdf:type ontology:musical_instrument . ?d rdf:type ontology:common_name } GROUP BY ?g } . FILTER ( ?z = 5 ) }
[]
musical instrument common name
Q213461 Q213100
SYSTEM
harmonium, tabla
Q213461 Q213100
(c(Q502895),P1303,c(Q34379))
action equal
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 5
[ANSWERS] are played by exactly 5 people
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?d ) AS ?z ) WHERE { ?d property:P1303 ?g . ?g rdf:type ontology:Q34379 . ?d rdf:type ontology:Q502895 } GROUP BY ?g } . FILTER ( ?z = 5 ) }
harmonium tabla
Harmonium and tabla are played by exactly 5 people
harmonium tabla
action equal
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 5
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?d ) AS ?z ) WHERE { ?d property:instrument ?g . ?g rdf:type ontology:musical_instrument . ?d rdf:type ontology:common_name } GROUP BY ?g } . FILTER ( ?z = 5 ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments do atleast 947 people know to play ?
(c(Q502895),P1303,c(Q34379))
action atleast
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 947
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?m WHERE { FILTER ( ?v >= 947 ) . { SELECT DISTINCT ?m ( COUNT ( ?n ) AS ?v ) WHERE { ?n property:P1303 ?m . ?m rdf:type ontology:Q34379 . ?n rdf:type ontology:Q502895 } GROUP BY ?m } }
action atleast
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 947
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?m WHERE { FILTER ( ?v >= 947 ) . { SELECT DISTINCT ?m ( COUNT ( ?n ) AS ?v ) WHERE { ?n property:instrument ?m . ?m rdf:type ontology:musical_instrument . ?n rdf:type ontology:common_name } GROUP BY ?m } }
[]
musical instrument common name
Q5994 Q46185 Q8338
SYSTEM
piano, bass guitar, trumpet
Q46185 Q5994 Q8338 Q8355 Q1444 Q128309
(c(Q502895),P1303,c(Q34379))
action atleast
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 947
Atleast 947 people know about [ANSWERS]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?m WHERE { FILTER ( ?v >= 947 ) . { SELECT DISTINCT ?m ( COUNT ( ?n ) AS ?v ) WHERE { ?n property:P1303 ?m . ?m rdf:type ontology:Q34379 . ?n rdf:type ontology:Q502895 } GROUP BY ?m } }
bass guitar piano trumpet violin organ drum kit
Atleast 947 people know about piano, bass guitar and trumpet
piano bass guitar trumpet
action atleast
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 947
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?m WHERE { FILTER ( ?v >= 947 ) . { SELECT DISTINCT ?m ( COUNT ( ?n ) AS ?v ) WHERE { ?n property:instrument ?m . ?m rdf:type ontology:musical_instrument . ?n rdf:type ontology:common_name } GROUP BY ?m } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q5994
P921
Q2342494
USER
Which collectable has that musical instrument as its principal topic ?
(c(Q2342494),P921,Q5994)
action filter_type
action find_reverse
entity Q5994
relation P921
type Q2342494
[{'concept': 'Q2342494'}, 'P921', 'Q5994']
SELECT DISTINCT ?r WHERE { ?r property:P921 resource:Q5994 . ?r rdf:type ontology:Q2342494 }
piano
action filter_type
action find_reverse
entity piano
relation main subject
type collectable
[{'concept': 'collectable'}, 'main subject', 'piano']
SELECT DISTINCT ?r WHERE { ?r property:main_subject resource:piano . ?r rdf:type ontology:collectable }
[]
collectable
Clarification for simple ques.
Q8338
SYSTEM
Did you mean trumpet ?
Q5994 Q46185 Q8338
(c(Q2342494),P921,Q5994) (c(Q2342494),P921,Q46185) (c(Q2342494),P921,Q8338)
[ANSWER]
[{'concept': 'Q2342494'}, 'P921', 'Q5994'] [{'concept': 'Q2342494'}, 'P921', 'Q46185'] [{'concept': 'Q2342494'}, 'P921', 'Q8338']
SELECT DISTINCT ?r WHERE { ?r property:P921 resource:Q5994 . ?r rdf:type ontology:Q2342494 }
piano bass guitar trumpet
Did you mean trumpet ?
trumpet
[{'concept': 'collectable'}, 'main subject', 'piano'] [{'concept': 'collectable'}, 'main subject', 'bass guitar'] [{'concept': 'collectable'}, 'main subject', 'trumpet']
SELECT DISTINCT ?r WHERE { ?r property:main_subject resource:piano . ?r rdf:type ontology:collectable }
[]
Simple Question (Coreferenced)
USER
No, I meant piano. Could you tell me the answer for that?
(c(Q2342494),P921,Q5994)
Q5994
[{'concept': 'Q2342494'}, 'P921', 'Q5994']
[{'concept': 'collectable'}, 'main subject', 'piano']
[]
Q25909280
SYSTEM
The Piano: An Encyclopedia
Q25909280
(c(Q2342494),P921,Q5994)
action filter_type
action find_reverse
entity Q5994
relation P921
type Q2342494
[ANSWER] has that musical instrument as its principal topic
[{'concept': 'Q2342494'}, 'P921', 'Q5994']
SELECT DISTINCT ?r WHERE { ?r property:P921 resource:Q5994 . ?r rdf:type ontology:Q2342494 }
The Piano: An Encyclopedia
The Piano: An Encyclopedia has that musical instrument as its principal topic
The Piano: An Encyclopedia
action filter_type
action find_reverse
entity piano
relation main subject
type collectable
[{'concept': 'collectable'}, 'main subject', 'piano']
SELECT DISTINCT ?r WHERE { ?r property:main_subject resource:piano . ?r rdf:type ontology:collectable }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q5994 Q19517
P61
Q502895
USER
How many people discovered or invented piano or Sao ?
(Q5994,P61,c(Q502895)) (Q19517,P61,c(Q502895))
action count
action union
action filter_type
action find
entity Q5994
relation P61
type Q502895
action filter_type
action find
entity Q19517
relation P61
type Q502895
['Q5994', 'P61', {'concept': 'Q502895'}] ['Q19517', 'P61', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?b ) WHERE { { resource:Q19517 property:P61 ?a . ?a rdf:type ontology:Q502895 } UNION { resource:Q5994 property:P61 ?a . ?a rdf:type ontology:Q502895 } }
piano Sao
action count
action union
action filter_type
action find
entity piano
relation discoverer or inventor
type common name
action filter_type
action find
entity Sao
relation discoverer or inventor
type common name
['piano', 'discoverer or inventor', {'concept': 'common name'}] ['Sao', 'discoverer or inventor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?b ) WHERE { { resource:Sao property:discoverer_or_inventor ?a . ?a rdf:type ontology:common_name } UNION { resource:piano property:discoverer_or_inventor ?a . ?a rdf:type ontology:common_name } }
[]
common name
SYSTEM
4
Q363435 Q301597 Q2573209 Q551165
(Q5994,P61,c(Q502895)) (Q19517,P61,c(Q502895))
action count
action union
action filter_type
action find
entity Q5994
relation P61
type Q502895
action filter_type
action find
entity Q19517
relation P61
type Q502895
[ANSWER]
['Q5994', 'P61', {'concept': 'Q502895'}] ['Q19517', 'P61', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?b ) WHERE { { resource:Q19517 property:P61 ?a . ?a rdf:type ontology:Q502895 } UNION { resource:Q5994 property:P61 ?a . ?a rdf:type ontology:Q502895 } }
Matthew J. Holman Bartolomeo Cristofori Dan Milisavljevic John J. Kavelaars
4
action count
action union
action filter_type
action find
entity piano
relation discoverer or inventor
type common name
action filter_type
action find
entity Sao
relation discoverer or inventor
type common name
['piano', 'discoverer or inventor', {'concept': 'common name'}] ['Sao', 'discoverer or inventor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?b ) WHERE { { resource:Sao property:discoverer_or_inventor ?a . ?a rdf:type ontology:common_name } UNION { resource:piano property:discoverer_or_inventor ?a . ?a rdf:type ontology:common_name } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q9682
P39
Q4164871 Q12737077
USER
How many positions or occupations were the positions for which Elizabeth II were appointed ?
(Q9682,P39,c(Q4164871)) (Q9682,P39,c(Q12737077))
action count
action union
action filter_type
action find
entity Q9682
relation P39
type Q4164871
action filter_type
action find
entity Q9682
relation P39
type Q12737077
['Q9682', 'P39', {'concept': 'Q4164871'}] ['Q9682', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?v ) WHERE { { resource:Q9682 property:P39 ?t . ?t rdf:type ontology:Q4164871 } UNION { resource:Q9682 property:P39 ?t . ?t rdf:type ontology:Q12737077 } }
Elizabeth II
action count
action union
action filter_type
action find
entity Elizabeth II
relation position held
type position
action filter_type
action find
entity Elizabeth II
relation position held
type occupation
['Elizabeth II', 'position held', {'concept': 'position'}] ['Elizabeth II', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?v ) WHERE { { resource:Elizabeth_II property:position_held ?t . ?t rdf:type ontology:position } UNION { resource:Elizabeth_II property:position_held ?t . ?t rdf:type ontology:occupation } }
[]
position occupation
SYSTEM
7
Q3052674 Q14931512 Q460244 Q116 Q14931517 Q460057 Q14931511
(Q9682,P39,c(Q4164871)) (Q9682,P39,c(Q12737077))
action count
action union
action filter_type
action find
entity Q9682
relation P39
type Q4164871
action filter_type
action find
entity Q9682
relation P39
type Q12737077
[ANSWER]
['Q9682', 'P39', {'concept': 'Q4164871'}] ['Q9682', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?v ) WHERE { { resource:Q9682 property:P39 ?t . ?t rdf:type ontology:Q4164871 } UNION { resource:Q9682 property:P39 ?t . ?t rdf:type ontology:Q12737077 } }
Supreme Governor of the Church of England monarch of Australia Duke of Normandy monarch Monarch of New Zealand Head of the Commonwealth monarch of Canada
7
action count
action union
action filter_type
action find
entity Elizabeth II
relation position held
type position
action filter_type
action find
entity Elizabeth II
relation position held
type occupation
['Elizabeth II', 'position held', {'concept': 'position'}] ['Elizabeth II', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?v ) WHERE { { resource:Elizabeth_II property:position_held ?t . ?t rdf:type ontology:position } UNION { resource:Elizabeth_II property:position_held ?t . ?t rdf:type ontology:occupation } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P180
Q34379 Q3305213 Q386724
USER
Which musical instruments are demonstrated in atmost 1 paintings or works ?
(c(Q3305213)|c(Q386724),P180,c(Q34379))
action atmost
action union
action find_reverse_tuple_counts
relation P180
type Q34379
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q34379
type Q386724
value 1
[[{'concept': 'Q3305213'}, {'concept': 'Q386724'}], 'P180', {'concept': 'Q34379'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?x ) AS ?m ) WHERE { VALUES ( ?b ) { ( ontology:Q386724 ) ( ontology:Q3305213 ) } . ?x rdf:type ?b } GROUP BY ?w } . FILTER ( ?m <= 1 ) }
action atmost
action union
action find_reverse_tuple_counts
relation depicts
type musical instrument
type painting
action find_reverse_tuple_counts
relation depicts
type musical instrument
type work
value 1
[[{'concept': 'painting'}, {'concept': 'work'}], 'depicts', {'concept': 'musical instrument'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?x ) AS ?m ) WHERE { VALUES ( ?b ) { ( ontology:work ) ( ontology:painting ) } . ?x rdf:type ?b } GROUP BY ?w } . FILTER ( ?m <= 1 ) }
[]
musical instrument painting work
Q5994 Q81982 Q218547
SYSTEM
piano, harpsichord, Sigismund Bell
Q8371 Q3382191 Q5994 Q7933058 Q81982 Q190172 Q218547 Q8338 Q1444 Q173453 Q1148709 Q1141589 Q426948 Q871633 Q3500690 Q80019 Q11404 Q1798603
(c(Q3305213)|c(Q386724),P180,c(Q34379))
action atmost
action union
action find_reverse_tuple_counts
relation P180
type Q34379
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q34379
type Q386724
value 1
[ANSWERS] are demonstrated in atmost 1 paintings or works
[[{'concept': 'Q3305213'}, {'concept': 'Q386724'}], 'P180', {'concept': 'Q34379'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?x ) AS ?m ) WHERE { VALUES ( ?b ) { ( ontology:Q386724 ) ( ontology:Q3305213 ) } . ?x rdf:type ?b } GROUP BY ?w } . FILTER ( ?m <= 1 ) }
cello upright piano piano Viola caipira harpsichord cymbal Sigismund Bell trumpet organ wind instrument grand piano Crotales sistrum Handbell Church bell double bass drum string instrument
Piano, harpsichord and Sigismund Bell are demonstrated in atmost 1 paintings or works
piano harpsichord Sigismund Bell
action atmost
action union
action find_reverse_tuple_counts
relation depicts
type musical instrument
type painting
action find_reverse_tuple_counts
relation depicts
type musical instrument
type work
value 1
[[{'concept': 'painting'}, {'concept': 'work'}], 'depicts', {'concept': 'musical instrument'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?x ) AS ?m ) WHERE { VALUES ( ?b ) { ( ontology:work ) ( ontology:painting ) } . ?x rdf:type ?b } GROUP BY ?w } . FILTER ( ?m <= 1 ) }
[]