Simple Question (Direct)
Simple Question
Q78207
P166
Q618779
USER
What was received by Dieter-Lebrecht Koch ?
(Q78207,P166,c(Q618779))
action filter_type
action find
entity Q78207
relation P166
type Q618779
['Q78207', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?a WHERE { resource:Q78207 property:P166 ?a . ?a rdf:type ontology:Q618779 }
Dieter-Lebrecht Koch
action filter_type
action find
entity Dieter-Lebrecht Koch
relation award received
type award
['Dieter-Lebrecht Koch', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?a WHERE { resource:Dieter-Lebrecht_Koch property:award_received ?a . ?a rdf:type ontology:award }
[]
award
Q10905380
SYSTEM
Cross of the Order of Merit of the Federal Republic of Germany
Q10905380
(Q78207,P166,c(Q618779))
action filter_type
action find
entity Q78207
relation P166
type Q618779
The [ANSWER] was received by Dieter-Lebrecht Koch
['Q78207', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?a WHERE { resource:Q78207 property:P166 ?a . ?a rdf:type ontology:Q618779 }
Cross of the Order of Merit of the Federal Republic of Germany
The Cross of the Order of Merit of the Federal Republic of Germany was received by Dieter-Lebrecht Koch
Cross of the Order of Merit of the Federal Republic of Germany
action filter_type
action find
entity Dieter-Lebrecht Koch
relation award received
type award
['Dieter-Lebrecht Koch', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?a WHERE { resource:Dieter-Lebrecht_Koch property:award_received ?a . ?a rdf:type ontology:award }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q78207
P39
Q12737077
USER
Which occupations were the positions for which that person were appointed ?
(Q10905380,P39,c(Q12737077))
action filter_type
action find
entity Q78207
relation P39
type Q12737077
['Q10905380', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q12737077 . resource:Q78207 property:P39 ?a }
Dieter-Lebrecht Koch
action filter_type
action find
entity Dieter-Lebrecht Koch
relation position held
type occupation
['Cross of the Order of Merit of the Federal Republic of Germany', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:occupation . resource:Dieter-Lebrecht_Koch property:position_held ?a }
[]
occupation
Q27169 Q18557729 Q1939555
SYSTEM
member of the European Parliament, member of the Volkskammer, member of the German Bundestag
Q27169 Q18557729 Q1939555
(Q10905380,P39,c(Q12737077))
action filter_type
action find
entity Q78207
relation P39
type Q12737077
[ANSWERS] were the positions for which that person were appointed
['Q10905380', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q12737077 . resource:Q78207 property:P39 ?a }
member of the European Parliament member of the Volkskammer member of the German Bundestag
Member of the European Parliament, member of the Volkskammer and member of the German Bundestag were the positions for which that person were appointed
member of the European Parliament member of the Volkskammer member of the German Bundestag
action filter_type
action find
entity Dieter-Lebrecht Koch
relation position held
type occupation
['Cross of the Order of Merit of the Federal Republic of Germany', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:occupation . resource:Dieter-Lebrecht_Koch property:position_held ?a }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q21104598
P39
Q502895
USER
Were Ibrahim Al Ali responsible for occupying the position of those occupations ?
(Q21104598,P39,Q27169) (Q21104598,P39,Q18557729) (Q21104598,P39,Q1939555)
action is_in
entity prev_answer
action find
entity Q21104598
relation P39
['Q21104598', 'P39', 'Q27169'] ['Q21104598', 'P39', 'Q18557729'] ['Q21104598', 'P39', 'Q1939555']
ASK WHERE { VALUES ( ?j ) { ( resource:Q27169 ) ( resource:Q18557729 ) ( resource:Q1939555 ) } . resource:Q21104598 property:P39 ?j }
Ibrahim Al Ali
action is_in
entity prev_answer
action find
entity Ibrahim Al Ali
relation position held
['Ibrahim Al Ali', 'position held', 'member of the European Parliament'] ['Ibrahim Al Ali', 'position held', 'member of the Volkskammer'] ['Ibrahim Al Ali', 'position held', 'member of the German Bundestag']
ASK WHERE { VALUES ( ?j ) { ( resource:member_of_the_European_Parliament ) ( resource:member_of_the_Volkskammer ) ( resource:member_of_the_German_Bundestag ) } . resource:Ibrahim_Al_Ali property:position_held ?j }
[]
common name
SYSTEM
NO
(Q21104598,P39,Q27169) (Q21104598,P39,Q18557729) (Q21104598,P39,Q1939555)
action is_in
entity prev_answer
action find
entity Q21104598
relation P39
[ANSWER]
['Q21104598', 'P39', 'Q27169'] ['Q21104598', 'P39', 'Q18557729'] ['Q21104598', 'P39', 'Q1939555']
ASK WHERE { VALUES ( ?j ) { ( resource:Q27169 ) ( resource:Q18557729 ) ( resource:Q1939555 ) } . resource:Q21104598 property:P39 ?j }
No
action is_in
entity prev_answer
action find
entity Ibrahim Al Ali
relation position held
['Ibrahim Al Ali', 'position held', 'member of the European Parliament'] ['Ibrahim Al Ali', 'position held', 'member of the Volkskammer'] ['Ibrahim Al Ali', 'position held', 'member of the German Bundestag']
ASK WHERE { VALUES ( ?j ) { ( resource:member_of_the_European_Parliament ) ( resource:member_of_the_Volkskammer ) ( resource:member_of_the_German_Bundestag ) } . resource:Ibrahim_Al_Ali property:position_held ?j }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q349086
P417
Q502895 Q12737077
USER
Which people are the patron saint of more number of occupations than Leopold III, Margrave of Austria ?
(c(Q12737077),P417,c(Q502895))
action greater
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find
entity Q349086
relation P417
type Q502895
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?b ) AS ?u ) WHERE { ?b property:P417 ?i . ?b rdf:type ontology:Q12737077 . ?i rdf:type ontology:Q502895 } GROUP BY ?i } . FILTER ( ?u > ?x ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?x ) WHERE { resource:Q349086 property:P417 ?e . ?e rdf:type ontology:Q502895 } } }
Leopold III, Margrave of Austria
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Leopold III, Margrave of Austria
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?b ) AS ?u ) WHERE { ?b property:patron_saint ?i . ?b rdf:type ontology:occupation . ?i rdf:type ontology:common_name } GROUP BY ?i } . FILTER ( ?u > ?x ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?x ) WHERE { resource:Leopold_III,_Margrave_of_Austria property:patron_saint ?e . ?e rdf:type ontology:common_name } } }
[]
common name occupation
Q9438 Q60059 Q166876
SYSTEM
Thomas Aquinas, Albertus Magnus, Isidore of Seville
Q453698 Q229190 Q152457 Q43689 Q328804 Q166876 Q163900 Q170547 Q212850 Q374822 Q9438 Q130997 Q312758 Q5575577 Q191107 Q242274 Q128538 Q183240 Q119289 Q360798 Q298845 Q48438 Q119512 Q44281 Q170164 Q43399 Q196653 Q508214 Q9200 Q193507 Q463600 Q43669 Q44265 Q192816 Q43982 Q179718 Q40662 Q332656 Q320171 Q137947 Q80513 Q43600 Q324700 Q744884 Q44015 Q151967 Q149727 Q232427 Q60059 Q17590 Q271474 Q200895 Q44248 Q276148
(c(Q12737077),P417,c(Q502895))
action greater
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find
entity Q349086
relation P417
type Q502895
[ANSWERS] are the patron saint of more number of occupations than Leopold III, Margrave of Austria
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?b ) AS ?u ) WHERE { ?b property:P417 ?i . ?b rdf:type ontology:Q12737077 . ?i rdf:type ontology:Q502895 } GROUP BY ?i } . FILTER ( ?u > ?x ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?x ) WHERE { resource:Q349086 property:P417 ?e . ?e rdf:type ontology:Q502895 } } }
Saint Amand Catherine of Siena Saint Roch Ambrose John the Evangelist Isidore of Seville Saint Francis Xavier Anthony the Great Vitus Adrian of Nicomedia Thomas Aquinas Damasus I Jean-Baptiste de La Salle Gobnait Clare of Assisi Dorothea of Caesarea Luke the Evangelist Saint Lucy Leonard of Port Maurice Saint Eligius Saint Florian Saint George William of Maleval Ignatius of Loyola Helena of Constantinople Andrew Saint Veronica Cyriacus Paul Saint Christopher Saint Petronilla Thomas the Apostle Benedict of Nursia Saint Barbara Bartholomew the Apostle Catherine of Alexandria John the Baptist Camillus de Lellis John of God Alexius of Rome Saint Cecilia Matthew the Apostle Urban of Langres Zita John the Apostle Saint Blaise Saint Giles Saint Apollonia Albertus Magnus Lawrence of Rome Joseph of Arimathea Agatha of Sicily Jerome Charalampus
Thomas Aquinas, Albertus Magnus and Isidore of Seville are the patron saint of more number of occupations than Leopold III, Margrave of Austria
Thomas Aquinas Albertus Magnus Isidore of Seville
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Leopold III, Margrave of Austria
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?b ) AS ?u ) WHERE { ?b property:patron_saint ?i . ?b rdf:type ontology:occupation . ?i rdf:type ontology:common_name } GROUP BY ?i } . FILTER ( ?u > ?x ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?x ) WHERE { resource:Leopold_III,_Margrave_of_Austria property:patron_saint ?e . ?e rdf:type ontology:common_name } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q603655
P417
Q502895 Q12737077
USER
And what about Fidelis of Como?
(c(Q12737077),P417,c(Q502895))
action greater
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find
entity Q603655
relation P417
type Q502895
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?d ) AS ?b ) WHERE { ?d property:P417 ?w . ?w rdf:type ontology:Q502895 . ?d rdf:type ontology:Q12737077 } GROUP BY ?w } . FILTER ( ?b > ?t ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?t ) WHERE { ?s rdf:type ontology:Q502895 . resource:Q603655 property:P417 ?s } } }
Fidelis of Como
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Fidelis of Como
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?d ) AS ?b ) WHERE { ?d property:patron_saint ?w . ?w rdf:type ontology:common_name . ?d rdf:type ontology:occupation } GROUP BY ?w } . FILTER ( ?b > ?t ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?t ) WHERE { ?s rdf:type ontology:common_name . resource:Fidelis_of_Como property:patron_saint ?s } } }
[]
common name occupation
Q9438 Q60059 Q166876
SYSTEM
Thomas Aquinas, Albertus Magnus, Isidore of Seville
Q453698 Q229190 Q152457 Q43689 Q328804 Q166876 Q163900 Q170547 Q212850 Q374822 Q9438 Q130997 Q312758 Q5575577 Q191107 Q242274 Q128538 Q183240 Q119289 Q360798 Q298845 Q48438 Q119512 Q44281 Q170164 Q43399 Q196653 Q508214 Q9200 Q193507 Q463600 Q43669 Q44265 Q192816 Q43982 Q179718 Q40662 Q332656 Q320171 Q137947 Q80513 Q43600 Q324700 Q744884 Q44015 Q151967 Q149727 Q232427 Q60059 Q17590 Q271474 Q200895 Q44248 Q276148
(c(Q12737077),P417,c(Q502895))
action greater
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find
entity Q603655
relation P417
type Q502895
[ANSWERS]
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?d ) AS ?b ) WHERE { ?d property:P417 ?w . ?w rdf:type ontology:Q502895 . ?d rdf:type ontology:Q12737077 } GROUP BY ?w } . FILTER ( ?b > ?t ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?t ) WHERE { ?s rdf:type ontology:Q502895 . resource:Q603655 property:P417 ?s } } }
Saint Amand Catherine of Siena Saint Roch Ambrose John the Evangelist Isidore of Seville Saint Francis Xavier Anthony the Great Vitus Adrian of Nicomedia Thomas Aquinas Damasus I Jean-Baptiste de La Salle Gobnait Clare of Assisi Dorothea of Caesarea Luke the Evangelist Saint Lucy Leonard of Port Maurice Saint Eligius Saint Florian Saint George William of Maleval Ignatius of Loyola Helena of Constantinople Andrew Saint Veronica Cyriacus Paul Saint Christopher Saint Petronilla Thomas the Apostle Benedict of Nursia Saint Barbara Bartholomew the Apostle Catherine of Alexandria John the Baptist Camillus de Lellis John of God Alexius of Rome Saint Cecilia Matthew the Apostle Urban of Langres Zita John the Apostle Saint Blaise Saint Giles Saint Apollonia Albertus Magnus Lawrence of Rome Joseph of Arimathea Agatha of Sicily Jerome Charalampus
Thomas Aquinas Albertus Magnus Isidore of Seville
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Fidelis of Como
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?d ) AS ?b ) WHERE { ?d property:patron_saint ?w . ?w rdf:type ontology:common_name . ?d rdf:type ontology:occupation } GROUP BY ?w } . FILTER ( ?b > ?t ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?t ) WHERE { ?s rdf:type ontology:common_name . resource:Fidelis_of_Como property:patron_saint ?s } } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1525985 Q21104598
P641
Q31629
USER
Which types of sport were Ibrahim Al Ali or Giovanni Borsotti a part of ?
OR((Q21104598,P641,c(Q31629)), (Q1525985,P641,c(Q31629)))
action filter_type
action union
action find
entity Q21104598
relation P641
action find
entity Q1525985
relation P641
type Q31629
{'OR': [['Q21104598', 'P641', {'concept': 'Q31629'}], ['Q1525985', 'P641', {'concept': 'Q31629'}]]}
SELECT DISTINCT ?x WHERE { { ?a property:P641 ?x . VALUES ( ?a ) { ( resource:Q21104598 ) ( resource:Q1525985 ) } } . ?x rdf:type ontology:Q31629 }
Giovanni Borsotti Ibrahim Al Ali
action filter_type
action union
action find
entity Ibrahim Al Ali
relation sport
action find
entity Giovanni Borsotti
relation sport
type type of sport
{'OR': [['Ibrahim Al Ali', 'sport', {'concept': 'type of sport'}], ['Giovanni Borsotti', 'sport', {'concept': 'type of sport'}]]}
SELECT DISTINCT ?x WHERE { { ?a property:sport ?x . VALUES ( ?a ) { ( resource:Ibrahim_Al_Ali ) ( resource:Giovanni_Borsotti ) } } . ?x rdf:type ontology:type_of_sport }
[]
type of sport
Q3609 Q186222
SYSTEM
road bicycle racing, alpine skiing
Q3609 Q186222
OR((Q21104598,P641,c(Q31629)), (Q1525985,P641,c(Q31629)))
action filter_type
action union
action find
entity Q21104598
relation P641
action find
entity Q1525985
relation P641
type Q31629
And [ANSWERS] were Ibrahim Al Ali or Giovanni Borsotti a part of
{'OR': [['Q21104598', 'P641', {'concept': 'Q31629'}], ['Q1525985', 'P641', {'concept': 'Q31629'}]]}
SELECT DISTINCT ?x WHERE { { ?a property:P641 ?x . VALUES ( ?a ) { ( resource:Q21104598 ) ( resource:Q1525985 ) } } . ?x rdf:type ontology:Q31629 }
road bicycle racing alpine skiing
And road bicycle racing and alpine skiing were Ibrahim Al Ali or Giovanni Borsotti a part of
road bicycle racing alpine skiing
action filter_type
action union
action find
entity Ibrahim Al Ali
relation sport
action find
entity Giovanni Borsotti
relation sport
type type of sport
{'OR': [['Ibrahim Al Ali', 'sport', {'concept': 'type of sport'}], ['Giovanni Borsotti', 'sport', {'concept': 'type of sport'}]]}
SELECT DISTINCT ?x WHERE { { ?a property:sport ?x . VALUES ( ?a ) { ( resource:Ibrahim_Al_Ali ) ( resource:Giovanni_Borsotti ) } } . ?x rdf:type ontology:type_of_sport }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P1444
Q15617994 Q31629
USER
Which administrative territories marks the end of journey for min number of types of sport ?
(c(Q31629),P1444,Q82707)
action argmin
action find_reverse_tuple_counts
relation P1444
type Q15617994
type Q31629
[{'concept': 'Q31629'}, 'P1444', 'Q82707']
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( MIN ( ?b ) AS ?t ) { SELECT DISTINCT ?w ( COUNT ( ?z ) AS ?b ) WHERE { ?z property:P1444 ?w . ?z rdf:type ontology:Q31629 . ?w rdf:type ontology:Q15617994 } GROUP BY ?w } } . { SELECT DISTINCT ?n ( COUNT ( ?e ) AS ?h ) WHERE { ?e rdf:type ontology:Q31629 . ?n rdf:type ontology:Q15617994 . ?e property:P1444 ?n } GROUP BY ?n } . FILTER ( ?h = ?t ) }
action argmin
action find_reverse_tuple_counts
relation destination point
type designation for an administrative territorial entity
type type of sport
[{'concept': 'type of sport'}, 'destination point', 'Greve in Chianti']
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( MIN ( ?b ) AS ?t ) { SELECT DISTINCT ?w ( COUNT ( ?z ) AS ?b ) WHERE { ?z property:destination_point ?w . ?z rdf:type ontology:type_of_sport . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?w } } . { SELECT DISTINCT ?n ( COUNT ( ?e ) AS ?h ) WHERE { ?e rdf:type ontology:type_of_sport . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e property:destination_point ?n } GROUP BY ?n } . FILTER ( ?h = ?t ) }
[]
designation for an administrative territorial entity type of sport
Q159 Q142 Q96
SYSTEM
Russia, France, Mexico
Q49605 Q668 Q19946 Q502710 Q54739 Q52695 Q40416 Q603221 Q116840 Q298424 Q41040 Q39778 Q96 Q142 Q47372 Q47036 Q100916 Q50195 Q194081 Q58637 Q47428 Q18021 Q99937 Q10226 Q683578 Q6231 Q23700 Q102547 Q23194 Q10302 Q5475 Q72130 Q266941 Q72114 Q207395 Q56084 Q80580 Q8971 Q188547 Q55958 Q100084 Q41056 Q9409 Q9039 Q13320 Q3639 Q207530 Q25082 Q252 Q176 Q46941 Q159 Q8611 Q40813 Q10263 Q13616 Q519972 Q246705 Q9284 Q47578 Q18356 Q270761
(c(Q31629),P1444,Q82707)
action argmin
action find_reverse_tuple_counts
relation P1444
type Q15617994
type Q31629
[ANSWERS] mark the end of journey for min number of types of sport
[{'concept': 'Q31629'}, 'P1444', 'Q82707']
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( MIN ( ?b ) AS ?t ) { SELECT DISTINCT ?w ( COUNT ( ?z ) AS ?b ) WHERE { ?z property:P1444 ?w . ?z rdf:type ontology:Q31629 . ?w rdf:type ontology:Q15617994 } GROUP BY ?w } } . { SELECT DISTINCT ?n ( COUNT ( ?e ) AS ?h ) WHERE { ?e rdf:type ontology:Q31629 . ?n rdf:type ontology:Q15617994 . ?e property:P1444 ?n } GROUP BY ?n } . FILTER ( ?h = ?t ) }
Montecatini Terme India Cherasco Greiz Serra San Bruno Viggiano Desio Os Ancares Fiuggi Pergine Valsugana Aprica Taino Mexico France Magreglio Crespano del Grappa Salsomaggiore Terme Imola Sestri Levante Gricignano di Aversa Valdobbiadene Biella Cesenatico Rivarolo Canavese Superga Cremona Stresa Abetone Margherita di Savoia Sestriere Treviso Grumo Nevano Chiavari Forio Montecopiolo Offida Ascea Agliè Castiglione della Pescaia San Giorgio del Sannio Pavullo nel Frignano Cittiglio Ivrea Bardonecchia Savona Verbania Saltara Borkum Indonesia Quebec Negrar Russia La Spezia Seregno San Francesco al Campo Matera Ilsfeld Brentonico Cirié Vittorio Veneto Barolo Laigueglia
Russia, France and Mexico mark the end of journey for min number of types of sport
Russia France Mexico
action argmin
action find_reverse_tuple_counts
relation destination point
type designation for an administrative territorial entity
type type of sport
[{'concept': 'type of sport'}, 'destination point', 'Greve in Chianti']
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( MIN ( ?b ) AS ?t ) { SELECT DISTINCT ?w ( COUNT ( ?z ) AS ?b ) WHERE { ?z property:destination_point ?w . ?z rdf:type ontology:type_of_sport . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?w } } . { SELECT DISTINCT ?n ( COUNT ( ?e ) AS ?h ) WHERE { ?e rdf:type ontology:type_of_sport . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e property:destination_point ?n } GROUP BY ?n } . FILTER ( ?h = ?t ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q3528934
P840
Q166142
USER
Do Time Gentlemen, Please! have their narrative set in those administrative territories ?
(Q3528934,P840,Q159) (Q3528934,P840,Q142) (Q3528934,P840,Q96)
action is_in
entity prev_answer
action find
entity Q3528934
relation P840
['Q3528934', 'P840', 'Q159'] ['Q3528934', 'P840', 'Q142'] ['Q3528934', 'P840', 'Q96']
ASK WHERE { VALUES ( ?r ) { ( resource:Q49605 ) ( resource:Q668 ) ( resource:Q19946 ) } . resource:Q3528934 property:P840 ?r }
Time Gentlemen, Please!
action is_in
entity prev_answer
action find
entity Time Gentlemen, Please!
relation narrative location
['Time Gentlemen, Please!', 'narrative location', 'Russia'] ['Time Gentlemen, Please!', 'narrative location', 'France'] ['Time Gentlemen, Please!', 'narrative location', 'Mexico']
ASK WHERE { VALUES ( ?r ) { ( resource:Montecatini_Terme ) ( resource:India ) ( resource:Cherasco ) } . resource:Time_Gentlemen,_Please! property:narrative_location ?r }
[]
application
SYSTEM
NO
(Q3528934,P840,Q159) (Q3528934,P840,Q142) (Q3528934,P840,Q96)
action is_in
entity prev_answer
action find
entity Q3528934
relation P840
[ANSWER]
['Q3528934', 'P840', 'Q159'] ['Q3528934', 'P840', 'Q142'] ['Q3528934', 'P840', 'Q96']
ASK WHERE { VALUES ( ?r ) { ( resource:Q49605 ) ( resource:Q668 ) ( resource:Q19946 ) } . resource:Q3528934 property:P840 ?r }
No
action is_in
entity prev_answer
action find
entity Time Gentlemen, Please!
relation narrative location
['Time Gentlemen, Please!', 'narrative location', 'Russia'] ['Time Gentlemen, Please!', 'narrative location', 'France'] ['Time Gentlemen, Please!', 'narrative location', 'Mexico']
ASK WHERE { VALUES ( ?r ) { ( resource:Montecatini_Terme ) ( resource:India ) ( resource:Cherasco ) } . resource:Time_Gentlemen,_Please! property:narrative_location ?r }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q4745987 Q166876
P27
Q15617994
USER
Which administrative territories do Isidore of Seville or Amgad Hosen belong to ?
OR((Q166876,P27,c(Q15617994)), (Q4745987,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q166876
relation P27
action find
entity Q4745987
relation P27
type Q15617994
{'OR': [['Q166876', 'P27', {'concept': 'Q15617994'}], ['Q4745987', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?f WHERE { { VALUES ( ?k ) { ( resource:Q166876 ) ( resource:Q4745987 ) } . ?k property:P27 ?f } . ?f rdf:type ontology:Q15617994 }
Amgad Hosen Isidore of Seville
action filter_type
action union
action find
entity Isidore of Seville
relation country of citizenship
action find
entity Amgad Hosen
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Isidore of Seville', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Amgad Hosen', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { { VALUES ( ?k ) { ( resource:Isidore_of_Seville ) ( resource:Amgad_Hosen ) } . ?k property:country_of_citizenship ?f } . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29 Q79
SYSTEM
Spain, Egypt
Q29 Q79
OR((Q166876,P27,c(Q15617994)), (Q4745987,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q166876
relation P27
action find
entity Q4745987
relation P27
type Q15617994
[ANSWERS] Isire of Seville or Amgad Hosen belong to
{'OR': [['Q166876', 'P27', {'concept': 'Q15617994'}], ['Q4745987', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?f WHERE { { VALUES ( ?k ) { ( resource:Q166876 ) ( resource:Q4745987 ) } . ?k property:P27 ?f } . ?f rdf:type ontology:Q15617994 }
Spain Egypt
Spain and Egypt Isire of Seville or Amgad Hosen belong to
Spain Egypt
action filter_type
action union
action find
entity Isidore of Seville
relation country of citizenship
action find
entity Amgad Hosen
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Isidore of Seville', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Amgad Hosen', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { { VALUES ( ?k ) { ( resource:Isidore_of_Seville ) ( resource:Amgad_Hosen ) } . ?k property:country_of_citizenship ?f } . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q29 Q79
P35
Q502895
USER
Who are elected as the head of state of Spain and Egypt ?
(Q29,P35,c(Q502895)) (Q79,P35,c(Q502895))
action union
action filter_type
action find
entity Q29
relation P35
type Q502895
action filter_type
action find
entity Q79
relation P35
type Q502895
['Q29', 'P35', {'concept': 'Q502895'}] ['Q79', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { ?z property:P35 ?r . VALUES ( ?z ) { ( resource:Q79 ) ( resource:Q29 ) } }
Spain Egypt
action union
action filter_type
action find
entity Spain
relation head of state
type common name
action filter_type
action find
entity Egypt
relation head of state
type common name
['Spain', 'head of state', {'concept': 'common name'}] ['Egypt', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { ?z property:head_of_state ?r . VALUES ( ?z ) { ( resource:Egypt ) ( resource:Spain ) } }
[]
common name
Q191045 Q19943 Q307871
SYSTEM
Felipe VI, Juan Carlos I, Abdel Fattah el-Sisi
Q191045 Q19943 Q307871
(Q29,P35,c(Q502895)) (Q79,P35,c(Q502895))
action union
action filter_type
action find
entity Q29
relation P35
type Q502895
action filter_type
action find
entity Q79
relation P35
type Q502895
[ANSWERS] are elected as the head of state of Spain and Egypt
['Q29', 'P35', {'concept': 'Q502895'}] ['Q79', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { ?z property:P35 ?r . VALUES ( ?z ) { ( resource:Q79 ) ( resource:Q29 ) } }
Felipe VI Juan Carlos I Abdel Fattah el-Sisi
Felipe VI, Juan Carlos I and Abdel Fattah el-Sisi are elected as the head of state of Spain and Egypt
Felipe VI Juan Carlos I Abdel Fattah el-Sisi
action union
action filter_type
action find
entity Spain
relation head of state
type common name
action filter_type
action find
entity Egypt
relation head of state
type common name
['Spain', 'head of state', {'concept': 'common name'}] ['Egypt', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { ?z property:head_of_state ?r . VALUES ( ?z ) { ( resource:Egypt ) ( resource:Spain ) } }
[]