Simple Question (Direct)
Simple Question
Q1246374
P166
Q2003221
USER
What were received by Jean-François de Gondi ?
(Q1246374,P166,c(Q2003221))
action filter_type
action find
entity Q1246374
relation P166
type Q2003221
['Q1246374', 'P166', {'concept': 'Q2003221'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q2003221 . resource:Q1246374 property:P166 ?g }
Jean-François de Gondi
action filter_type
action find
entity Jean-François de Gondi
relation award received
type chivalric order
['Jean-François de Gondi', 'award received', {'concept': 'chivalric order'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:chivalric_order . resource:Jean-François_de_Gondi property:award_received ?g }
[]
chivalric order
Q11609173 Q11598948
SYSTEM
Knight in the order of Saint-Michel, Commander of the Order of the Holy Spirit
Q11609173 Q11598948
(Q1246374,P166,c(Q2003221))
action filter_type
action find
entity Q1246374
relation P166
type Q2003221
[ANSWERS] were received by Jean-François de Gondi
['Q1246374', 'P166', {'concept': 'Q2003221'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q2003221 . resource:Q1246374 property:P166 ?g }
Knight in the order of Saint-Michel Commander of the Order of the Holy Spirit
Knight in the order of Saint-Michel and Commander of the Order of the Holy Spirit were received by Jean-François de Gondi
Knight in the order of Saint-Michel Commander of the Order of the Holy Spirit
action filter_type
action find
entity Jean-François de Gondi
relation award received
type chivalric order
['Jean-François de Gondi', 'award received', {'concept': 'chivalric order'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:chivalric_order . resource:Jean-François_de_Gondi property:award_received ?g }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1246374
P119
Q16970
USER
Which church is the tomb of Jean-François de Gondi ?
(Q1246374,P119,c(Q16970))
action filter_type
action find
entity Q1246374
relation P119
type Q16970
['Q1246374', 'P119', {'concept': 'Q16970'}]
SELECT DISTINCT ?g WHERE { resource:Q1246374 property:P119 ?g . ?g rdf:type ontology:Q16970 }
Jean-François de Gondi
action filter_type
action find
entity Jean-François de Gondi
relation place of burial
type church
['Jean-François de Gondi', 'place of burial', {'concept': 'church'}]
SELECT DISTINCT ?g WHERE { resource:Jean-François_de_Gondi property:place_of_burial ?g . ?g rdf:type ontology:church }
[]
church
Q184407
SYSTEM
Saint Denis Basilica
Q184407
(Q1246374,P119,c(Q16970))
action filter_type
action find
entity Q1246374
relation P119
type Q16970
[ANSWER] is the tomb of Jean-François de Gondi
['Q1246374', 'P119', {'concept': 'Q16970'}]
SELECT DISTINCT ?g WHERE { resource:Q1246374 property:P119 ?g . ?g rdf:type ontology:Q16970 }
Saint Denis Basilica
Saint Denis Basilica is the tomb of Jean-François de Gondi
Saint Denis Basilica
action filter_type
action find
entity Jean-François de Gondi
relation place of burial
type church
['Jean-François de Gondi', 'place of burial', {'concept': 'church'}]
SELECT DISTINCT ?g WHERE { resource:Jean-François_de_Gondi property:place_of_burial ?g . ?g rdf:type ontology:church }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q5528127
Q16970
USER
And also tell me about Gavin Dunbar?
(Q5528127,P119,c(Q16970))
action filter_type
action find
entity Q5528127
relation P119
type Q16970
['Q5528127', 'P119', {'concept': 'Q16970'}]
SELECT DISTINCT ?x WHERE { resource:Q5528127 property:P119 ?x . ?x rdf:type ontology:Q16970 }
Gavin Dunbar
action filter_type
action find
entity Gavin Dunbar
relation place of burial
type church
['Gavin Dunbar', 'place of burial', {'concept': 'church'}]
SELECT DISTINCT ?x WHERE { resource:Gavin_Dunbar property:place_of_burial ?x . ?x rdf:type ontology:church }
[]
church
Q2380110
SYSTEM
St Machar's Cathedral
Q2380110
(Q5528127,P119,c(Q16970))
action filter_type
action find
entity Q5528127
relation P119
type Q16970
[ANSWER]
['Q5528127', 'P119', {'concept': 'Q16970'}]
SELECT DISTINCT ?x WHERE { resource:Q5528127 property:P119 ?x . ?x rdf:type ontology:Q16970 }
St Machar's Cathedral
St Machar's Cathedral
action filter_type
action find
entity Gavin Dunbar
relation place of burial
type church
['Gavin Dunbar', 'place of burial', {'concept': 'church'}]
SELECT DISTINCT ?x WHERE { resource:Gavin_Dunbar property:place_of_burial ?x . ?x rdf:type ontology:church }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q2380110 Q145
P17
Q15617994
USER
Is St Machar's Cathedral present in United Kingdom ?
(Q2380110,P17,Q145)
action is_in
entity Q145
action find
entity Q2380110
relation P17
['Q2380110', 'P17', 'Q145']
ASK WHERE { resource:Q2380110 property:P17 resource:Q145 }
St Machar's Cathedral United Kingdom
action is_in
entity United Kingdom
action find
entity St Machar's Cathedral
relation country
["St Machar's Cathedral", 'country', 'United Kingdom']
ASK WHERE { resource:St_Machar's_Cathedral property:country resource:United_Kingdom }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q2380110,P17,Q145)
action is_in
entity Q145
action find
entity Q2380110
relation P17
[ANSWER]
['Q2380110', 'P17', 'Q145']
ASK WHERE { resource:Q2380110 property:P17 resource:Q145 }
Yes
action is_in
entity United Kingdom
action find
entity St Machar's Cathedral
relation country
["St Machar's Cathedral", 'country', 'United Kingdom']
ASK WHERE { resource:St_Machar's_Cathedral property:country resource:United_Kingdom }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P138
Q502895 Q15619164 Q16970
USER
Which churches are named after min number of people or abstract beings ?
(c(Q16970),P138,c(Q502895)|c(Q15619164))
action argmin
action union
action find_tuple_counts
relation P138
type Q16970
type Q502895
action find_tuple_counts
relation P138
type Q16970
type Q15619164
[{'concept': 'Q16970'}, 'P138', [{'concept': 'Q502895'}, {'concept': 'Q15619164'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?x ) AS ?i ) WHERE { { ?w rdf:type ontology:Q16970 . ?x rdf:type ontology:Q15619164 . ?w property:P138 ?x } UNION { ?w property:P138 ?x . ?w rdf:type ontology:Q16970 . ?x rdf:type ontology:Q502895 } } GROUP BY ?w } . FILTER ( ?i = ?q ) . { SELECT DISTINCT ( MIN ( ?l ) AS ?q ) { SELECT DISTINCT ?d ( COUNT ( ?r ) AS ?l ) WHERE { { ?d property:P138 ?r . ?d rdf:type ontology:Q16970 . ?r rdf:type ontology:Q502895 } UNION { ?d rdf:type ontology:Q16970 . ?r rdf:type ontology:Q15619164 . ?d property:P138 ?r } } GROUP BY ?d } } }
action argmin
action union
action find_tuple_counts
relation named after
type church
type common name
action find_tuple_counts
relation named after
type church
type abstract being
[{'concept': 'church'}, 'named after', [{'concept': 'common name'}, {'concept': 'abstract being'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?x ) AS ?i ) WHERE { { ?w rdf:type ontology:church . ?x rdf:type ontology:abstract_being . ?w property:named_after ?x } UNION { ?w property:named_after ?x . ?w rdf:type ontology:church . ?x rdf:type ontology:common_name } } GROUP BY ?w } . FILTER ( ?i = ?q ) . { SELECT DISTINCT ( MIN ( ?l ) AS ?q ) { SELECT DISTINCT ?d ( COUNT ( ?r ) AS ?l ) WHERE { { ?d property:named_after ?r . ?d rdf:type ontology:church . ?r rdf:type ontology:common_name } UNION { ?d rdf:type ontology:church . ?r rdf:type ontology:abstract_being . ?d property:named_after ?r } } GROUP BY ?d } } }
[]
common name abstract being church
Q476529 Q4245062 Q2588857
SYSTEM
Winchester Cathedral, Cathedral of the Holy Trinity, Holy Spirit Cathedral
Q631511 Q476529 Q24233078 Q2588857 Q2942239 Q967929 Q1246955 Q2994596 Q4235752 Q195310 Q1736175 Q455042 Q1281985 Q1894133 Q768692 Q3673484 Q4238163 Q917917 Q203741 Q390169 Q935380 Q262500 Q1891897 Q2942727 Q2942861 Q1273950 Q1736182 Q1736223 Q2299324 Q762242 Q1456840 Q956163 Q18889320 Q11746211 Q1138070 Q36996 Q929584 Q5758365 Q1265998 Q666935 Q2453562 Q17488072 Q1637393 Q2942782 Q579004 Q735805 Q15958473 Q1546307 Q4425999 Q79154 Q15972177 Q248589 Q1592722 Q2942665 Q1160154 Q1665853 Q875754 Q1051168 Q7402413 Q1247719 Q1594930 Q1594933 Q16857098 Q4245062 Q59607 Q180274 Q2942887 Q15815698 Q2397640 Q2317878 Q167231 Q1067803 Q880381 Q13586340 Q16959554 Q269654 Q153437 Q3325 Q13377583 Q18048891 Q1236685 Q1736157 Q1257628 Q1050898 Q3668337 Q1257632 Q1640381 Q18020912 Q7110757 Q589634 Q158324 Q154215 Q6315031
(c(Q16970),P138,c(Q502895)|c(Q15619164))
action argmin
action union
action find_tuple_counts
relation P138
type Q16970
type Q502895
action find_tuple_counts
relation P138
type Q16970
type Q15619164
[ANSWERS] are named after min number of people or abstract beings
[{'concept': 'Q16970'}, 'P138', [{'concept': 'Q502895'}, {'concept': 'Q15619164'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?x ) AS ?i ) WHERE { { ?w rdf:type ontology:Q16970 . ?x rdf:type ontology:Q15619164 . ?w property:P138 ?x } UNION { ?w property:P138 ?x . ?w rdf:type ontology:Q16970 . ?x rdf:type ontology:Q502895 } } GROUP BY ?w } . FILTER ( ?i = ?q ) . { SELECT DISTINCT ( MIN ( ?l ) AS ?q ) { SELECT DISTINCT ?d ( COUNT ( ?r ) AS ?l ) WHERE { { ?d property:P138 ?r . ?d rdf:type ontology:Q16970 . ?r rdf:type ontology:Q502895 } UNION { ?d rdf:type ontology:Q16970 . ?r rdf:type ontology:Q15619164 . ?d property:P138 ?r } } GROUP BY ?d } } }
Croce di Lucca, Naples Winchester Cathedral Church of St. Cyril and Methodius in Ufa Holy Spirit Cathedral Matâ'Utu Cathedral Buenos Aires Metropolitan Cathedral Regnum Marianum Church (former) Dominican Church Church of the Assumption of Mary in Budslaŭ Holy Trinity Orthodox Cathedral Carcassonne Cathedral St. Michael's Church Armenian Cathedral of the Holy Cross Assumption of Mary Church Norwich Cathedral Santa Maria Maggiore Red Church in Vichuga Bristol Cathedral Monastery of San Miguel de Escalada Lincoln Cathedral St. Michael's Cathedral Gloucester Cathedral Holy Trinity Cathedral Sacred Heart Cathedral, Moundou Assomption Cathedral Cathedral of The Most Holy Trinity, Montevideo Chichester Cathedral Soissons Cathedral Transfiguration Cathedral in Odessa Trinity Cathedral Peace Church in Świdnica Ss. Cyril and Methodius Cathedral Sacred Heart Basilica, Zagreb St. Andrew Bobola Church Coventry Cathedral Holy Trinity Cathedral of Tbilisi Santa Croce e Purgatorio al Mercato, Naples Cathedral Basilica of Our Lady of St. John of the Lakes St. Michael's Cathedral Katholische Hofkirche Trinity Episcopal Cathedral St. Michael (Kelz) Greek Catholic Cathedral Catedral Basílica de Nuestra Señora del Valle Ely Cathedral Basilica in Eger Parish Church of the Assumption of the Virgin Mary Križevci Cathedral Holy Rosary Cathedral Cathedral of the Holy Spirit Ss. Cyril and Methodius Cathedral St. Michael's Cathedral Sisak Cathedral Forli cathedral Cathedral of the Annunciation Orekhovo-Borisovo Metochion Kreuzkirche Notre-Dame Cathedral Basilica, Ottawa Saints Kiril & Metodij Bulgarian Eastern Orthodox Diocese Cathedral St. Michael Church Church of the Holy Cross Holy cross church Bludenz St. Michael Cathedral of the Holy Trinity Jesuitenkirche Notre-Dame de Chartres Cathedral of the Holy Cross Hl. Kreuz Temple of the Exaltation of the Holy Cross St. Cosmas and Damian St. Mary's Cathedral Christ Church Cathedral Sacred Heart Church Peace Church in Jawor Nuestra Señora de Lourdes, Malvín, Montevideo St. Michael and St. Gudula Cathedral Altenberger Dom St. Michael the Archangel Church Marienkirche Holy Cross Church (Keyenberg) Oliwa Cathedral Church of the Holy Trinity, Žilina Holy Trinity Cathedral, Liepāja Cathedral of the Blessed Sacrament, Christchurch Church of Saints Pietro and Marcellino Holy Trinity Cathedral Orthodox Church of the Holy Spirit, Vilnius Hl. Dreifaltigkeit Our Lady of Assumption Co-Cathedral Churches of Peace St. Michael's Church Saint Peter in Chains Cathedral Cathedral of Name of the Blessed Virgin Mary
Winchester Cathedral, Cathedral of the Holy Trinity and Holy Spirit Cathedral are named after min number of people or abstract beings
Winchester Cathedral Cathedral of the Holy Trinity Holy Spirit Cathedral
action argmin
action union
action find_tuple_counts
relation named after
type church
type common name
action find_tuple_counts
relation named after
type church
type abstract being
[{'concept': 'church'}, 'named after', [{'concept': 'common name'}, {'concept': 'abstract being'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?x ) AS ?i ) WHERE { { ?w rdf:type ontology:church . ?x rdf:type ontology:abstract_being . ?w property:named_after ?x } UNION { ?w property:named_after ?x . ?w rdf:type ontology:church . ?x rdf:type ontology:common_name } } GROUP BY ?w } . FILTER ( ?i = ?q ) . { SELECT DISTINCT ( MIN ( ?l ) AS ?q ) { SELECT DISTINCT ?d ( COUNT ( ?r ) AS ?l ) WHERE { { ?d property:named_after ?r . ?d rdf:type ontology:church . ?r rdf:type ontology:common_name } UNION { ?d rdf:type ontology:church . ?r rdf:type ontology:abstract_being . ?d property:named_after ?r } } GROUP BY ?d } } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q476529
P417
Q502895
USER
What are the names of the patron saint of that church ?
(Q476529,P417,c(Q502895))
action filter_type
action find
entity Q476529
relation P417
type Q502895
['Q476529', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { resource:Q476529 property:P417 ?x . ?x rdf:type ontology:Q502895 }
Winchester Cathedral
action filter_type
action find
entity Winchester Cathedral
relation patron saint
type common name
['Winchester Cathedral', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { resource:Winchester_Cathedral property:patron_saint ?x . ?x rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q476529
SYSTEM
Did you mean Winchester Cathedral ?
Q476529 Q4245062 Q2588857
(Q476529,P417,c(Q502895)) (Q4245062,P417,c(Q502895)) (Q2588857,P417,c(Q502895))
[ANSWER]
['Q476529', 'P417', {'concept': 'Q502895'}] ['Q4245062', 'P417', {'concept': 'Q502895'}] ['Q2588857', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { resource:Q476529 property:P417 ?x . ?x rdf:type ontology:Q502895 }
Winchester Cathedral Cathedral of the Holy Trinity Holy Spirit Cathedral
Did you mean Winchester Cathedral ?
Winchester Cathedral
['Winchester Cathedral', 'patron saint', {'concept': 'common name'}] ['Cathedral of the Holy Trinity', 'patron saint', {'concept': 'common name'}] ['Holy Spirit Cathedral', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { resource:Winchester_Cathedral property:patron_saint ?x . ?x rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
Yes
(Q476529,P417,c(Q502895))
['Q476529', 'P417', {'concept': 'Q502895'}]
['Winchester Cathedral', 'patron saint', {'concept': 'common name'}]
[]
Q9200 Q33923
SYSTEM
Paul, Peter
Q9200 Q33923
(Q476529,P417,c(Q502895))
action filter_type
action find
entity Q476529
relation P417
type Q502895
The names of the patron saint of that church are Saint [ANSWERS]
['Q476529', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { resource:Q476529 property:P417 ?x . ?x rdf:type ontology:Q502895 }
Paul Peter
The names of the patron saint of that church are Saint Paul and Peter
Paul Peter
action filter_type
action find
entity Winchester Cathedral
relation patron saint
type common name
['Winchester Cathedral', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { resource:Winchester_Cathedral property:patron_saint ?x . ?x rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P725
Q502895 Q1001378
USER
Which cinematic techniques had their voice dubbing done by approximately 59 people ?
(c(Q1001378),P725,c(Q502895))
action approx
action find_tuple_counts
relation P725
type Q1001378
type Q502895
value 59
[{'concept': 'Q1001378'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?u ) AS ?k ) WHERE { ?b property:P725 ?u . ?b rdf:type ontology:Q1001378 . ?u rdf:type ontology:Q502895 } GROUP BY ?b } . FILTER ( ?k = 59 ) }
action approx
action find_tuple_counts
relation voice actor
type cinematic technique
type common name
value 59
[{'concept': 'cinematic technique'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?u ) AS ?k ) WHERE { ?b property:voice_actor ?u . ?b rdf:type ontology:cinematic_technique . ?u rdf:type ontology:common_name } GROUP BY ?b } . FILTER ( ?k = 59 ) }
[]
common name cinematic technique
Q15270647 Q9321426
SYSTEM
Zootopia, Finding Dory
Q15270647 Q9321426
(c(Q1001378),P725,c(Q502895))
action approx
action find_tuple_counts
relation P725
type Q1001378
type Q502895
value 59
[ANSWERS] had their voice dubbing done by approximately 59 people
[{'concept': 'Q1001378'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?u ) AS ?k ) WHERE { ?b property:P725 ?u . ?b rdf:type ontology:Q1001378 . ?u rdf:type ontology:Q502895 } GROUP BY ?b } . FILTER ( ?k = 59 ) }
Zootopia Finding Dory
Zootopia and Finding Dory had their voice dubbing done by approximately 59 people
Zootopia Finding Dory
action approx
action find_tuple_counts
relation voice actor
type cinematic technique
type common name
value 59
[{'concept': 'cinematic technique'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?u ) AS ?k ) WHERE { ?b property:voice_actor ?u . ?b rdf:type ontology:cinematic_technique . ?u rdf:type ontology:common_name } GROUP BY ?b } . FILTER ( ?k = 59 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1445
Q1001378 Q386724
USER
How many works are recounted in atleast 3 cinematic techniques ?
(c(Q386724),P1445,c(Q1001378))
action count
action atleast
action find_tuple_counts
relation P1445
type Q386724
type Q1001378
value 3
[{'concept': 'Q386724'}, 'P1445', {'concept': 'Q1001378'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?x ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?o ) AS ?g ) WHERE { ?e rdf:type ontology:Q386724 . ?o rdf:type ontology:Q1001378 . ?e property:P1445 ?o } GROUP BY ?e } . FILTER ( ?g >= 3 ) }
action count
action atleast
action find_tuple_counts
relation fictional universe described in
type work
type cinematic technique
value 3
[{'concept': 'work'}, 'fictional universe described in', {'concept': 'cinematic technique'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?x ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?o ) AS ?g ) WHERE { ?e rdf:type ontology:work . ?o rdf:type ontology:cinematic_technique . ?e property:fictional_universe_described_in ?o } GROUP BY ?e } . FILTER ( ?g >= 3 ) }
[]
cinematic technique work
SYSTEM
1
Q1203222
(c(Q386724),P1445,c(Q1001378))
action count
action atleast
action find_tuple_counts
relation P1445
type Q386724
type Q1001378
value 3
[ANSWER]
[{'concept': 'Q386724'}, 'P1445', {'concept': 'Q1001378'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?x ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?o ) AS ?g ) WHERE { ?e rdf:type ontology:Q386724 . ?o rdf:type ontology:Q1001378 . ?e property:P1445 ?o } GROUP BY ?e } . FILTER ( ?g >= 3 ) }
Shrek
1
action count
action atleast
action find_tuple_counts
relation fictional universe described in
type work
type cinematic technique
value 3
[{'concept': 'work'}, 'fictional universe described in', {'concept': 'cinematic technique'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?x ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?o ) AS ?g ) WHERE { ?e rdf:type ontology:work . ?o rdf:type ontology:cinematic_technique . ?e property:fictional_universe_described_in ?o } GROUP BY ?e } . FILTER ( ?g >= 3 ) }
[]