Simple Question (Direct)
Simple Question
Q216240
P937
Q515
USER
Which is the work location of Leo Wohleb ?
(Q216240,P937,c(Q515))
action filter_type
action find
entity Q216240
relation P937
type Q515
['Q216240', 'P937', {'concept': 'Q515'}]
SELECT DISTINCT ?y WHERE { resource:Q216240 property:P937 ?y . ?y rdf:type ontology:Q515 }
Leo Wohleb
action filter_type
action find
entity Leo Wohleb
relation work location
type city
['Leo Wohleb', 'work location', {'concept': 'city'}]
SELECT DISTINCT ?y WHERE { resource:Leo_Wohleb property:work_location ?y . ?y rdf:type ontology:city }
[]
city
Q2833
SYSTEM
Freiburg im Breisgau
Q2833
(Q216240,P937,c(Q515))
action filter_type
action find
entity Q216240
relation P937
type Q515
Is the work location of Leo Wohleb in [ANSWER]
['Q216240', 'P937', {'concept': 'Q515'}]
SELECT DISTINCT ?y WHERE { resource:Q216240 property:P937 ?y . ?y rdf:type ontology:Q515 }
Freiburg im Breisgau
Is the work location of Leo Wohleb in Freiburg im Breisgau
Freiburg im Breisgau
action filter_type
action find
entity Leo Wohleb
relation work location
type city
['Leo Wohleb', 'work location', {'concept': 'city'}]
SELECT DISTINCT ?y WHERE { resource:Leo_Wohleb property:work_location ?y . ?y rdf:type ontology:city }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q216240
P39
Q12737077
USER
What were the positions for which Leo Wohleb were appointed ?
(Q216240,P39,c(Q12737077))
action filter_type
action find
entity Q216240
relation P39
type Q12737077
['Q216240', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q12737077 . resource:Q216240 property:P39 ?p }
Leo Wohleb
action filter_type
action find
entity Leo Wohleb
relation position held
type occupation
['Leo Wohleb', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:occupation . resource:Leo_Wohleb property:position_held ?p }
[]
occupation
Q3099723 Q22291576
SYSTEM
Minister-President, Ambassador of Germany to Portugal
Q3099723 Q22291576
(Q216240,P39,c(Q12737077))
action filter_type
action find
entity Q216240
relation P39
type Q12737077
[ANSWERS]
['Q216240', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q12737077 . resource:Q216240 property:P39 ?p }
Minister-President Ambassador of Germany to Portugal
Minister-President and Ambassador of Germany to Portugal
Minister-President Ambassador of Germany to Portugal
action filter_type
action find
entity Leo Wohleb
relation position held
type occupation
['Leo Wohleb', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:occupation . resource:Leo_Wohleb property:position_held ?p }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q6594874
Q12737077
USER
And also tell me about Christoffer Anker Bergh?
(Q6594874,P39,c(Q12737077))
action filter_type
action find
entity Q6594874
relation P39
type Q12737077
['Q6594874', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { resource:Q6594874 property:P39 ?a . ?a rdf:type ontology:Q12737077 }
Christoffer Anker Bergh
action filter_type
action find
entity Christoffer Anker Bergh
relation position held
type occupation
['Christoffer Anker Bergh', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { resource:Christoffer_Anker_Bergh property:position_held ?a . ?a rdf:type ontology:occupation }
[]
occupation
Q9045502
SYSTEM
member of the Parliament of Norway
Q9045502
(Q6594874,P39,c(Q12737077))
action filter_type
action find
entity Q6594874
relation P39
type Q12737077
[ANSWER]
['Q6594874', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { resource:Q6594874 property:P39 ?a . ?a rdf:type ontology:Q12737077 }
member of the Parliament of Norway
member of the Parliament of Norway
action filter_type
action find
entity Christoffer Anker Bergh
relation position held
type occupation
['Christoffer Anker Bergh', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { resource:Christoffer_Anker_Bergh property:position_held ?a . ?a rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q9045502 Q20
P1001
Q15617994
USER
Does Norway belong to jurisdiction of that occupation ?
(Q9045502,P1001,Q20)
action is_in
entity Q20
action find
entity Q9045502
relation P1001
['Q9045502', 'P1001', 'Q20']
ASK WHERE { resource:Q9045502 property:P1001 resource:Q20 }
member of the Parliament of Norway Norway
action is_in
entity Norway
action find
entity member of the Parliament of Norway
relation applies to jurisdiction
['member of the Parliament of Norway', 'applies to jurisdiction', 'Norway']
ASK WHERE { resource:member_of_the_Parliament_of_Norway property:applies_to_jurisdiction resource:Norway }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q9045502,P1001,Q20)
action is_in
entity Q20
action find
entity Q9045502
relation P1001
[ANSWER]
['Q9045502', 'P1001', 'Q20']
ASK WHERE { resource:Q9045502 property:P1001 resource:Q20 }
Yes
action is_in
entity Norway
action find
entity member of the Parliament of Norway
relation applies to jurisdiction
['member of the Parliament of Norway', 'applies to jurisdiction', 'Norway']
ASK WHERE { resource:member_of_the_Parliament_of_Norway property:applies_to_jurisdiction resource:Norway }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q216240 Q183
P27
Q1048835
USER
Is Germany the native country of Leo Wohleb ?
(Q216240,P27,Q183)
action is_in
entity Q183
action find
entity Q216240
relation P27
['Q216240', 'P27', 'Q183']
ASK WHERE { resource:Q216240 property:P27 resource:Q183 }
Leo Wohleb Germany
action is_in
entity Germany
action find
entity Leo Wohleb
relation country of citizenship
['Leo Wohleb', 'country of citizenship', 'Germany']
ASK WHERE { resource:Leo_Wohleb property:country_of_citizenship resource:Germany }
[]
political territorial entity
SYSTEM
YES
(Q216240,P27,Q183)
action is_in
entity Q183
action find
entity Q216240
relation P27
[ANSWER]
['Q216240', 'P27', 'Q183']
ASK WHERE { resource:Q216240 property:P27 resource:Q183 }
Yes
action is_in
entity Germany
action find
entity Leo Wohleb
relation country of citizenship
['Leo Wohleb', 'country of citizenship', 'Germany']
ASK WHERE { resource:Leo_Wohleb property:country_of_citizenship resource:Germany }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q313807
P417
Q502895 Q12737077
USER
Which people are the patron saint of more number of occupations than Joseph of Cupertino ?
(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 Q313807
relation P417
type Q502895
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?s ) AS ?c ) WHERE { ?s property:P417 ?z . ?s rdf:type ontology:Q12737077 . ?z rdf:type ontology:Q502895 } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?g ) WHERE { resource:Q313807 property:P417 ?w . ?w rdf:type ontology:Q502895 } } . FILTER ( ?c > ?g ) }
Joseph of Cupertino
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Joseph of Cupertino
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?s ) AS ?c ) WHERE { ?s property:patron_saint ?z . ?s rdf:type ontology:occupation . ?z rdf:type ontology:common_name } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?g ) WHERE { resource:Joseph_of_Cupertino property:patron_saint ?w . ?w rdf:type ontology:common_name } } . FILTER ( ?c > ?g ) }
[]
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 Q313807
relation P417
type Q502895
[ANSWERS] are the patron saint of more number of occupations than Joseph of Cupertino
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?s ) AS ?c ) WHERE { ?s property:P417 ?z . ?s rdf:type ontology:Q12737077 . ?z rdf:type ontology:Q502895 } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?g ) WHERE { resource:Q313807 property:P417 ?w . ?w rdf:type ontology:Q502895 } } . FILTER ( ?c > ?g ) }
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 Joseph of Cupertino
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 Joseph of Cupertino
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?s ) AS ?c ) WHERE { ?s property:patron_saint ?z . ?s rdf:type ontology:occupation . ?z rdf:type ontology:common_name } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?g ) WHERE { resource:Joseph_of_Cupertino property:patron_saint ?w . ?w rdf:type ontology:common_name } } . FILTER ( ?c > ?g ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q44020
P417
Q502895 Q12737077
USER
And also tell me about Saint Matthias?
(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 Q44020
relation P417
type Q502895
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?h ) AS ?p ) WHERE { ?h property:P417 ?s . ?s rdf:type ontology:Q502895 . ?h rdf:type ontology:Q12737077 } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?w ) WHERE { resource:Q44020 property:P417 ?b . ?b rdf:type ontology:Q502895 } } . FILTER ( ?p > ?w ) }
Saint Matthias
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Saint Matthias
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?h ) AS ?p ) WHERE { ?h property:patron_saint ?s . ?s rdf:type ontology:common_name . ?h rdf:type ontology:occupation } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?w ) WHERE { resource:Saint_Matthias property:patron_saint ?b . ?b rdf:type ontology:common_name } } . FILTER ( ?p > ?w ) }
[]
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 Q44020
relation P417
type Q502895
[ANSWERS]
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?h ) AS ?p ) WHERE { ?h property:P417 ?s . ?s rdf:type ontology:Q502895 . ?h rdf:type ontology:Q12737077 } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?w ) WHERE { resource:Q44020 property:P417 ?b . ?b rdf:type ontology:Q502895 } } . FILTER ( ?p > ?w ) }
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 Saint Matthias
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?h ) AS ?p ) WHERE { ?h property:patron_saint ?s . ?s rdf:type ontology:common_name . ?h rdf:type ontology:occupation } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?w ) WHERE { resource:Saint_Matthias property:patron_saint ?b . ?b rdf:type ontology:common_name } } . FILTER ( ?p > ?w ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P725
Q502895 Q1001378
USER
How many cinematic techniques have been dubbed by around 31 people ?
(c(Q1001378),P725,c(Q502895))
action count
action approx
action find_tuple_counts
relation P725
type Q1001378
type Q502895
value 31
[{'concept': 'Q1001378'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?p ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?n ) AS ?t ) WHERE { ?r property:P725 ?n . ?n rdf:type ontology:Q502895 . ?r rdf:type ontology:Q1001378 } GROUP BY ?r } . FILTER ( ?t = 31 ) }
action count
action approx
action find_tuple_counts
relation voice actor
type cinematic technique
type common name
value 31
[{'concept': 'cinematic technique'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?p ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?n ) AS ?t ) WHERE { ?r property:voice_actor ?n . ?n rdf:type ontology:common_name . ?r rdf:type ontology:cinematic_technique } GROUP BY ?r } . FILTER ( ?t = 31 ) }
[]
common name cinematic technique
SYSTEM
1
Q2329413
(c(Q1001378),P725,c(Q502895))
action count
action approx
action find_tuple_counts
relation P725
type Q1001378
type Q502895
value 31
[ANSWER]
[{'concept': 'Q1001378'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?p ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?n ) AS ?t ) WHERE { ?r property:P725 ?n . ?n rdf:type ontology:Q502895 . ?r rdf:type ontology:Q1001378 } GROUP BY ?r } . FILTER ( ?t = 31 ) }
Barbie as the Princess and the Pauper
1
action count
action approx
action find_tuple_counts
relation voice actor
type cinematic technique
type common name
value 31
[{'concept': 'cinematic technique'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?p ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?n ) AS ?t ) WHERE { ?r property:voice_actor ?n . ?n rdf:type ontology:common_name . ?r rdf:type ontology:cinematic_technique } GROUP BY ?r } . FILTER ( ?t = 31 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q2163597 Q60059
P937
Q56061
USER
Which administrative territories are the locations where Albertus Magnus or Rolf Leis worked ?
OR((Q60059,P937,c(Q56061)), (Q2163597,P937,c(Q56061)))
action filter_type
action union
action find
entity Q60059
relation P937
action find
entity Q2163597
relation P937
type Q56061
{'OR': [['Q60059', 'P937', {'concept': 'Q56061'}], ['Q2163597', 'P937', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?g WHERE { { VALUES ( ?t ) { ( resource:Q60059 ) ( resource:Q2163597 ) } . ?t property:P937 ?g } . ?g rdf:type ontology:Q56061 }
Rolf Leis Albertus Magnus
action filter_type
action union
action find
entity Albertus Magnus
relation work location
action find
entity Rolf Leis
relation work location
type administrative territorial entity
{'OR': [['Albertus Magnus', 'work location', {'concept': 'administrative territorial entity'}], ['Rolf Leis', 'work location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { VALUES ( ?t ) { ( resource:Albertus_Magnus ) ( resource:Rolf_Leis ) } . ?t property:work_location ?g } . ?g rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q365 Q586 Q1017
SYSTEM
Cologne, Bonn, Aachen
Q365 Q586 Q1017
OR((Q60059,P937,c(Q56061)), (Q2163597,P937,c(Q56061)))
action filter_type
action union
action find
entity Q60059
relation P937
action find
entity Q2163597
relation P937
type Q56061
[ANSWERS] are the locations where Albertus Magnus or Rolf Leis worked
{'OR': [['Q60059', 'P937', {'concept': 'Q56061'}], ['Q2163597', 'P937', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?g WHERE { { VALUES ( ?t ) { ( resource:Q60059 ) ( resource:Q2163597 ) } . ?t property:P937 ?g } . ?g rdf:type ontology:Q56061 }
Cologne Bonn Aachen
Cologne, Bonn and Aachen are the locations where Albertus Magnus or Rolf Leis worked
Cologne Bonn Aachen
action filter_type
action union
action find
entity Albertus Magnus
relation work location
action find
entity Rolf Leis
relation work location
type administrative territorial entity
{'OR': [['Albertus Magnus', 'work location', {'concept': 'administrative territorial entity'}], ['Rolf Leis', 'work location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { VALUES ( ?t ) { ( resource:Albertus_Magnus ) ( resource:Rolf_Leis ) } . ?t property:work_location ?g } . ?g rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q451851
P276
Q1269299
USER
Are Amadeus FiRe AG located at those administrative territories ?
(Q451851,P276,Q365) (Q451851,P276,Q586) (Q451851,P276,Q1017)
action is_in
entity prev_answer
action find
entity Q451851
relation P276
['Q451851', 'P276', 'Q365'] ['Q451851', 'P276', 'Q586'] ['Q451851', 'P276', 'Q1017']
ASK WHERE { resource:Q451851 property:P276 ?z . VALUES ( ?z ) { ( resource:Q365 ) ( resource:Q586 ) ( resource:Q1017 ) } }
Amadeus FiRe AG
action is_in
entity prev_answer
action find
entity Amadeus FiRe AG
relation location
['Amadeus FiRe AG', 'location', 'Cologne'] ['Amadeus FiRe AG', 'location', 'Bonn'] ['Amadeus FiRe AG', 'location', 'Aachen']
ASK WHERE { resource:Amadeus_FiRe_AG property:location ?z . VALUES ( ?z ) { ( resource:Cologne ) ( resource:Bonn ) ( resource:Aachen ) } }
[]
type of business entity
SYSTEM
YES
(Q451851,P276,Q365) (Q451851,P276,Q586) (Q451851,P276,Q1017)
action is_in
entity prev_answer
action find
entity Q451851
relation P276
[ANSWER]
['Q451851', 'P276', 'Q365'] ['Q451851', 'P276', 'Q586'] ['Q451851', 'P276', 'Q1017']
ASK WHERE { resource:Q451851 property:P276 ?z . VALUES ( ?z ) { ( resource:Q365 ) ( resource:Q586 ) ( resource:Q1017 ) } }
Yes
action is_in
entity prev_answer
action find
entity Amadeus FiRe AG
relation location
['Amadeus FiRe AG', 'location', 'Cologne'] ['Amadeus FiRe AG', 'location', 'Bonn'] ['Amadeus FiRe AG', 'location', 'Aachen']
ASK WHERE { resource:Amadeus_FiRe_AG property:location ?z . VALUES ( ?z ) { ( resource:Cologne ) ( resource:Bonn ) ( resource:Aachen ) } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q691810 Q313807
P417
Q15617994
USER
Which administrative territories have Joseph of Cupertino or Visitation as their patron saint ?
OR((c(Q15617994),P417,Q313807), (c(Q15617994),P417,Q691810))
action filter_type
action union
action find_reverse
entity Q313807
relation P417
action find_reverse
entity Q691810
relation P417
type Q15617994
{'OR': [[{'concept': 'Q15617994'}, 'P417', 'Q313807'], [{'concept': 'Q15617994'}, 'P417', 'Q691810']]}
SELECT DISTINCT ?p WHERE { { { ?p property:P417 resource:Q691810 } UNION { ?p property:P417 resource:Q313807 } } . ?p rdf:type ontology:Q15617994 }
Visitation Joseph of Cupertino
action filter_type
action union
action find_reverse
entity Joseph of Cupertino
relation patron saint
action find_reverse
entity Visitation
relation patron saint
type designation for an administrative territorial entity
{'OR': [[{'concept': 'designation for an administrative territorial entity'}, 'patron saint', 'Joseph of Cupertino'], [{'concept': 'designation for an administrative territorial entity'}, 'patron saint', 'Visitation']]}
SELECT DISTINCT ?p WHERE { { { ?p property:patron_saint resource:Visitation } UNION { ?p property:patron_saint resource:Joseph_of_Cupertino } } . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q101251 Q200925 Q52133 Q39862 Q52102 Q56048
SYSTEM
Montello, Lombardy, Lona-Lases, Copertino, Menarola, Subbiano, Castorano
Q101251 Q200925 Q52133 Q39862 Q52102 Q56048
OR((c(Q15617994),P417,Q313807), (c(Q15617994),P417,Q691810))
action filter_type
action union
action find_reverse
entity Q313807
relation P417
action find_reverse
entity Q691810
relation P417
type Q15617994
[ANSWERS] have Joseph of Cupertino or Visitation as their patron saint
{'OR': [[{'concept': 'Q15617994'}, 'P417', 'Q313807'], [{'concept': 'Q15617994'}, 'P417', 'Q691810']]}
SELECT DISTINCT ?p WHERE { { { ?p property:P417 resource:Q691810 } UNION { ?p property:P417 resource:Q313807 } } . ?p rdf:type ontology:Q15617994 }
Montello, Lombardy Lona-Lases Copertino Menarola Subbiano Castorano
Montello, Lombardy, Lona-Lases, Copertino, Menarola, Subbiano and Castorano have Joseph of Cupertino or Visitation as their patron saint
Montello, Lombardy Lona-Lases Copertino Menarola Subbiano Castorano
action filter_type
action union
action find_reverse
entity Joseph of Cupertino
relation patron saint
action find_reverse
entity Visitation
relation patron saint
type designation for an administrative territorial entity
{'OR': [[{'concept': 'designation for an administrative territorial entity'}, 'patron saint', 'Joseph of Cupertino'], [{'concept': 'designation for an administrative territorial entity'}, 'patron saint', 'Visitation']]}
SELECT DISTINCT ?p WHERE { { { ?p property:patron_saint resource:Visitation } UNION { ?p property:patron_saint resource:Joseph_of_Cupertino } } . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P748
Q895526 Q11204 Q12737077
USER
Which occupations did exactly 1 authority organs or legislatures appoint ?
(c(Q12737077),P748,c(Q895526)|c(Q11204))
action equal
action union
action find_tuple_counts
relation P748
type Q12737077
type Q895526
action find_tuple_counts
relation P748
type Q12737077
type Q11204
value 1
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q895526'}, {'concept': 'Q11204'}]]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?n ) ?t WHERE { { ?t property:P748 ?m . ?t rdf:type ontology:Q12737077 . ?m rdf:type ontology:Q895526 } UNION { ?t property:P748 ?m . ?t rdf:type ontology:Q12737077 . ?m rdf:type ontology:Q11204 } } GROUP BY ?t } . FILTER ( ?n = 1 ) }
action equal
action union
action find_tuple_counts
relation appointed by
type occupation
type authority organ
action find_tuple_counts
relation appointed by
type occupation
type legislature
value 1
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'authority organ'}, {'concept': 'legislature'}]]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?n ) ?t WHERE { { ?t property:appointed_by ?m . ?t rdf:type ontology:occupation . ?m rdf:type ontology:authority_organ } UNION { ?t property:appointed_by ?m . ?t rdf:type ontology:occupation . ?m rdf:type ontology:legislature } } GROUP BY ?t } . FILTER ( ?n = 1 ) }
[]
authority organ legislature occupation
Q655407 Q4122271 Q25863345
SYSTEM
President of the People's Republic of China, Premier of the People's Republic of China, Secretary of State for International Trade
Q2666591 Q11793630 Q1072417 Q2287650 Q5333410 Q261746 Q1029955 Q642859 Q967762 Q655407 Q940135 Q2305968 Q596123 Q7444340 Q2419581 Q25863345 Q2747647 Q1043568 Q13645132 Q636207 Q2003296 Q967750 Q866680 Q783785 Q1072415 Q26000995 Q1763459 Q1591470 Q735015 Q1029968 Q2297543 Q4122271 Q967737 Q6542448 Q2301213 Q1658460 Q786242 Q1434880
(c(Q12737077),P748,c(Q895526)|c(Q11204))
action equal
action union
action find_tuple_counts
relation P748
type Q12737077
type Q895526
action find_tuple_counts
relation P748
type Q12737077
type Q11204
value 1
Exactly 1 authority organs or legislatures appointed by [ANSWERS]
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q895526'}, {'concept': 'Q11204'}]]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?n ) ?t WHERE { { ?t property:P748 ?m . ?t rdf:type ontology:Q12737077 . ?m rdf:type ontology:Q895526 } UNION { ?t property:P748 ?m . ?t rdf:type ontology:Q12737077 . ?m rdf:type ontology:Q11204 } } GROUP BY ?t } . FILTER ( ?n = 1 ) }
Chair of the Federal Reserve governor of national banks of Serbia and Yugoslavia Chief of Staff of the United States Air Force United States Secretary of the Interior Economic Secretary to the Treasury United States Secretary of the Air Force United States Secretary of Agriculture United States Secretary of Homeland Security United States Secretary of Education President of the People's Republic of China United States Secretary of the Navy United States Secretary of Health and Human Services president of Bangladesh Secretary of State for Dominion Affairs United States Secretary of Housing and Urban Development Secretary of State for International Trade Secretary of State for Defence Prime Minister of Vietnam Lord Mayor of Dublin United States Attorney General United States Secretary of Commerce United States Secretary of Labor President of Vietnam Chief of Staff of the United States Army Chief of Naval Operations President of the Parliament of Catalonia Chairman of the Joint Chiefs of Staff United States Secretary of the Army United States Secretary of Defense United States Secretary of Energy United States Deputy Secretary of Defense Premier of the People's Republic of China United States Secretary of Transportation Librarian of Congress United States Deputy Secretary of State United States Secretary of Veterans Affairs White House Chief of Staff Surgeon General of the United States
Exactly 1 authority organs or legislatures appointed by President of the People's Republic of China, Premier of the People's Republic of China and Secretary of State for International Trade
President of the People's Republic of China Premier of the People's Republic of China Secretary of State for International Trade
action equal
action union
action find_tuple_counts
relation appointed by
type occupation
type authority organ
action find_tuple_counts
relation appointed by
type occupation
type legislature
value 1
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'authority organ'}, {'concept': 'legislature'}]]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?n ) ?t WHERE { { ?t property:appointed_by ?m . ?t rdf:type ontology:occupation . ?m rdf:type ontology:authority_organ } UNION { ?t property:appointed_by ?m . ?t rdf:type ontology:occupation . ?m rdf:type ontology:legislature } } GROUP BY ?t } . FILTER ( ?n = 1 ) }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P17
Q15617994
USER
How many administrative territories do that occupation belong to ?
(Q25863345,P17,c(Q15617994))
['Q25863345', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q25863345 property:Q6256 ?z . ?z rdf:type ontology:Q15617994 }
['Secretary of State for International Trade', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Secretary_of_State_for_International_Trade property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Quantitative|Count|Single entity type|Clarification
Q4122271
SYSTEM
Did you mean Premier of the People's Republic of China ?
(Q655407,P17,c(Q15617994)) (Q4122271,P17,c(Q15617994)) (Q25863345,P17,c(Q15617994))
[ANSWER]
['Q655407', 'P17', {'concept': 'Q15617994'}] ['Q4122271', 'P17', {'concept': 'Q15617994'}] ['Q25863345', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q25863345 property:Q6256 ?z . ?z rdf:type ontology:Q15617994 }
Did you mean Premier of the People's Republic of China ?
Premier of the People's Republic of China
["President of the People's Republic of China", 'country', {'concept': 'designation for an administrative territorial entity'}] ["Premier of the People's Republic of China", 'country', {'concept': 'designation for an administrative territorial entity'}] ['Secretary of State for International Trade', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Secretary_of_State_for_International_Trade property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Secretary of State for International Trade. Could you tell me the answer for that?
(Q25863345,P17,c(Q15617994))
Q25863345
['Q25863345', 'P17', {'concept': 'Q15617994'}]
['Secretary of State for International Trade', 'country', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
1
Q145
(Q25863345,P17,c(Q15617994))
[ANSWER]
['Q25863345', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q25863345 property:Q6256 ?z . ?z rdf:type ontology:Q15617994 }
United Kingdom
1
['Secretary of State for International Trade', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Secretary_of_State_for_International_Trade property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q365
P840
Q234460
USER
Which texts have their narrative set in Cologne ?
(c(Q234460),P840,Q365)
action filter_type
action find_reverse
entity Q365
relation P840
type Q234460
[{'concept': 'Q234460'}, 'P840', 'Q365']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q234460 . ?a property:P840 resource:Q365 }
Cologne
action filter_type
action find_reverse
entity Cologne
relation narrative location
type text
[{'concept': 'text'}, 'narrative location', 'Cologne']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:text . ?a property:narrative_location resource:Cologne }
[]
text
Q514002 Q1551030 Q1193148
SYSTEM
The Clown, Group Portrait with Lady, The Silent Angel
Q1193148 Q514002 Q655773 Q1551030
(c(Q234460),P840,Q365)
action filter_type
action find_reverse
entity Q365
relation P840
type Q234460
[ANSWERS] have their narrative set in Cologne
[{'concept': 'Q234460'}, 'P840', 'Q365']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q234460 . ?a property:P840 resource:Q365 }
The Silent Angel The Clown Billiards at Half-past Nine Group Portrait with Lady
The Clown, Group Portrait with Lady and The Silent Angel have their narrative set in Cologne
The Clown Group Portrait with Lady The Silent Angel
action filter_type
action find_reverse
entity Cologne
relation narrative location
type text
[{'concept': 'text'}, 'narrative location', 'Cologne']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:text . ?a property:narrative_location resource:Cologne }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q514002
P800
Q502895
USER
Whose notable work was The Clown ?
(c(Q502895),P800,Q514002)
action filter_type
action find_reverse
entity Q514002
relation P800
type Q502895
[{'concept': 'Q502895'}, 'P800', 'Q514002']
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q502895 . ?q property:P800 resource:Q514002 }
The Clown
action filter_type
action find_reverse
entity The Clown
relation notable work
type common name
[{'concept': 'common name'}, 'notable work', 'The Clown']
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:common_name . ?q property:notable_work resource:The_Clown }
[]
common name
Q42747
SYSTEM
Heinrich Böll
Q42747
(c(Q502895),P800,Q514002)
action filter_type
action find_reverse
entity Q514002
relation P800
type Q502895
[ANSWER] was The Clown
[{'concept': 'Q502895'}, 'P800', 'Q514002']
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q502895 . ?q property:P800 resource:Q514002 }
Heinrich Böll
Heinrich Böll was The Clown
Heinrich Böll
action filter_type
action find_reverse
entity The Clown
relation notable work
type common name
[{'concept': 'common name'}, 'notable work', 'The Clown']
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:common_name . ?q property:notable_work resource:The_Clown }
[]