Simple Question (Direct)
Simple Question
Q192689
P27
Q1048835
USER
Which political territory is Bertram Brockhouse a civilian of ?
(Q192689,P27,c(Q1048835))
action filter_type
action find
entity Q192689
relation P27
type Q1048835
['Q192689', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q1048835 . resource:Q192689 property:P27 ?v }
Bertram Brockhouse
action filter_type
action find
entity Bertram Brockhouse
relation country of citizenship
type political territorial entity
['Bertram Brockhouse', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:political_territorial_entity . resource:Bertram_Brockhouse property:country_of_citizenship ?v }
[]
political territorial entity
Q16
SYSTEM
Canada
Q16
(Q192689,P27,c(Q1048835))
action filter_type
action find
entity Q192689
relation P27
type Q1048835
[ANSWER] is Bertram Brockhouse a civilian of
['Q192689', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q1048835 . resource:Q192689 property:P27 ?v }
Canada
Canada is Bertram Brockhouse a civilian of
Canada
action filter_type
action find
entity Bertram Brockhouse
relation country of citizenship
type political territorial entity
['Bertram Brockhouse', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:political_territorial_entity . resource:Bertram_Brockhouse property:country_of_citizenship ?v }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q192689
P108
Q3918
USER
Which university does that person work for ?
(Q16,P108,c(Q3918))
action filter_type
action find
entity Q192689
relation P108
type Q3918
['Q16', 'P108', {'concept': 'Q3918'}]
SELECT DISTINCT ?n WHERE { resource:Q192689 property:P108 ?n . ?n rdf:type ontology:Q3918 }
Bertram Brockhouse
action filter_type
action find
entity Bertram Brockhouse
relation employer
type university
['Canada', 'employer', {'concept': 'university'}]
SELECT DISTINCT ?n WHERE { resource:Bertram_Brockhouse property:employer ?n . ?n rdf:type ontology:university }
[]
university
Q632891
SYSTEM
McMaster University
Q632891
(Q16,P108,c(Q3918))
action filter_type
action find
entity Q192689
relation P108
type Q3918
That person works at [ANSWER]
['Q16', 'P108', {'concept': 'Q3918'}]
SELECT DISTINCT ?n WHERE { resource:Q192689 property:P108 ?n . ?n rdf:type ontology:Q3918 }
McMaster University
That person works at McMaster University
McMaster University
action filter_type
action find
entity Bertram Brockhouse
relation employer
type university
['Canada', 'employer', {'concept': 'university'}]
SELECT DISTINCT ?n WHERE { resource:Bertram_Brockhouse property:employer ?n . ?n rdf:type ontology:university }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q632891
P17
Q1048835
USER
How many political territories do McMaster University belong to ?
(Q632891,P17,c(Q1048835))
action count
action filter_type
action find
entity Q632891
relation P17
type Q1048835
['Q632891', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?e ) WHERE { resource:Q632891 property:P17 ?v . ?v rdf:type ontology:Q1048835 }
McMaster University
action count
action filter_type
action find
entity McMaster University
relation country
type political territorial entity
['McMaster University', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?e ) WHERE { resource:McMaster_University property:country ?v . ?v rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
1
Q16
(Q632891,P17,c(Q1048835))
action count
action filter_type
action find
entity Q632891
relation P17
type Q1048835
[ANSWER]
['Q632891', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?e ) WHERE { resource:Q632891 property:P17 ?v . ?v rdf:type ontology:Q1048835 }
Canada
1
action count
action filter_type
action find
entity McMaster University
relation country
type political territorial entity
['McMaster University', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?e ) WHERE { resource:McMaster_University property:country ?v . ?v rdf:type ontology:political_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q632891
P1416
Q502895
USER
Which person is affiliated to McMaster University ?
(c(Q502895),P1416,Q632891)
action filter_type
action find_reverse
entity Q632891
relation P1416
type Q502895
[{'concept': 'Q502895'}, 'P1416', 'Q632891']
SELECT DISTINCT ?n WHERE { ?n property:P1416 resource:Q632891 . ?n rdf:type ontology:Q502895 }
McMaster University
action filter_type
action find_reverse
entity McMaster University
relation affiliation
type common name
[{'concept': 'common name'}, 'affiliation', 'McMaster University']
SELECT DISTINCT ?n WHERE { ?n property:affiliation resource:McMaster_University . ?n rdf:type ontology:common_name }
[]
common name
Q16614143
SYSTEM
H. D. Grundy
Q16614143
(c(Q502895),P1416,Q632891)
action filter_type
action find_reverse
entity Q632891
relation P1416
type Q502895
[ANSWER] is affiliated to McMaster University
[{'concept': 'Q502895'}, 'P1416', 'Q632891']
SELECT DISTINCT ?n WHERE { ?n property:P1416 resource:Q632891 . ?n rdf:type ontology:Q502895 }
H. D. Grundy
H. D. Grundy is affiliated to McMaster University
H. D. Grundy
action filter_type
action find_reverse
entity McMaster University
relation affiliation
type common name
[{'concept': 'common name'}, 'affiliation', 'McMaster University']
SELECT DISTINCT ?n WHERE { ?n property:affiliation resource:McMaster_University . ?n rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q16614143
P735
Q82799
USER
Which name is that person known by ?
(Q16614143,P735,c(Q82799))
action filter_type
action find
entity Q16614143
relation P735
type Q82799
['Q16614143', 'P735', {'concept': 'Q82799'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q82799 . resource:Q16614143 property:P735 ?y }
H. D. Grundy
action filter_type
action find
entity H. D. Grundy
relation given name
type name
['H. D. Grundy', 'given name', {'concept': 'name'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:name . resource:H._D._Grundy property:given_name ?y }
[]
name
Q19803505
SYSTEM
H.
Q19803505
(Q16614143,P735,c(Q82799))
action filter_type
action find
entity Q16614143
relation P735
type Q82799
That person is known as [ANSWER]
['Q16614143', 'P735', {'concept': 'Q82799'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q82799 . resource:Q16614143 property:P735 ?y }
H.
That person is known as H.
H.
action filter_type
action find
entity H. D. Grundy
relation given name
type name
['H. D. Grundy', 'given name', {'concept': 'name'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:name . resource:H._D._Grundy property:given_name ?y }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q5304359 Q16614143
P735
Q82799
USER
Or S. Q. R. Ilyas?
OR((Q16614143,P735,c(Q82799)), (Q5304359,P735,c(Q82799)))
action filter_type
action union
action find
entity Q16614143
relation P735
action find
entity Q5304359
relation P735
type Q82799
{'OR': [['Q16614143', 'P735', {'concept': 'Q82799'}], ['Q5304359', 'P735', {'concept': 'Q82799'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q82799 . { ?z property:P735 ?x . VALUES ( ?z ) { ( resource:Q16614143 ) ( resource:Q5304359 ) } } }
S. Q. R. Ilyas H. D. Grundy
action filter_type
action union
action find
entity H. D. Grundy
relation given name
action find
entity S. Q. R. Ilyas
relation given name
type name
{'OR': [['H. D. Grundy', 'given name', {'concept': 'name'}], ['S. Q. R. Ilyas', 'given name', {'concept': 'name'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:name . { ?z property:given_name ?x . VALUES ( ?z ) { ( resource:H._D._Grundy ) ( resource:S._Q._R._Ilyas ) } } }
[]
name
Q19803505 Q19803518
SYSTEM
H., S.
Q19803505 Q19803518
OR((Q16614143,P735,c(Q82799)), (Q5304359,P735,c(Q82799)))
action filter_type
action union
action find
entity Q16614143
relation P735
action find
entity Q5304359
relation P735
type Q82799
[ANSWERS]
{'OR': [['Q16614143', 'P735', {'concept': 'Q82799'}], ['Q5304359', 'P735', {'concept': 'Q82799'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q82799 . { ?z property:P735 ?x . VALUES ( ?z ) { ( resource:Q16614143 ) ( resource:Q5304359 ) } } }
H. S.
H. S.
action filter_type
action union
action find
entity H. D. Grundy
relation given name
action find
entity S. Q. R. Ilyas
relation given name
type name
{'OR': [['H. D. Grundy', 'given name', {'concept': 'name'}], ['S. Q. R. Ilyas', 'given name', {'concept': 'name'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:name . { ?z property:given_name ?x . VALUES ( ?z ) { ( resource:H._D._Grundy ) ( resource:S._Q._R._Ilyas ) } } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P17
Q1048835 Q811979 Q7743
USER
Which political territories do min number of architectural structures and homes belong to ?
(c(Q811979)|c(Q7743),P17,c(Q1048835))
action argmin
action union
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q811979
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q7743
[[{'concept': 'Q811979'}, {'concept': 'Q7743'}], 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MIN ( ?e ) AS ?h ) { SELECT DISTINCT ( COUNT ( ?o ) AS ?e ) ?i WHERE { { ?o property:P17 ?i . ?i rdf:type ontology:Q1048835 . ?o rdf:type ontology:Q7743 } UNION { ?o property:P17 ?i . ?i rdf:type ontology:Q1048835 . ?o rdf:type ontology:Q811979 } } GROUP BY ?i } } . FILTER ( ?v = ?h ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?v ) ?k WHERE { { ?u property:P17 ?k . ?k rdf:type ontology:Q1048835 . ?u rdf:type ontology:Q811979 } UNION { ?u property:P17 ?k . ?k rdf:type ontology:Q1048835 . ?u rdf:type ontology:Q7743 } } GROUP BY ?k } }
action argmin
action union
action find_reverse_tuple_counts
relation country
type political territorial entity
type architectural structure
action find_reverse_tuple_counts
relation country
type political territorial entity
type home
[[{'concept': 'architectural structure'}, {'concept': 'home'}], 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MIN ( ?e ) AS ?h ) { SELECT DISTINCT ( COUNT ( ?o ) AS ?e ) ?i WHERE { { ?o property:country ?i . ?i rdf:type ontology:political_territorial_entity . ?o rdf:type ontology:home } UNION { ?o property:country ?i . ?i rdf:type ontology:political_territorial_entity . ?o rdf:type ontology:architectural_structure } } GROUP BY ?i } } . FILTER ( ?v = ?h ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?v ) ?k WHERE { { ?u property:country ?k . ?k rdf:type ontology:political_territorial_entity . ?u rdf:type ontology:architectural_structure } UNION { ?u property:country ?k . ?k rdf:type ontology:political_territorial_entity . ?u rdf:type ontology:home } } GROUP BY ?k } }
[]
political territorial entity architectural structure home
Q5705 Q1000 Q769
SYSTEM
Catalonia, Gabon, Grenada
Q193714 Q1000 Q195972 Q21590062 Q746558 Q838261 Q193619 Q769 Q699964 Q763 Q13767 Q34617 Q22880 Q641138 Q693551 Q13353 Q848383 Q5705 Q13726 Q953068 Q38610 Q3405693 Q1054923 Q13862 Q79965 Q223793 Q319376 Q13869 Q407199 Q2002138 Q3899 Q35672 Q25228 Q1747689 Q757 Q9648 Q231 Q234 Q2991382 Q168651 Q399702 Q35086 Q208279 Q1615455 Q31747 Q129286
(c(Q811979)|c(Q7743),P17,c(Q1048835))
action argmin
action union
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q811979
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q7743
[ANSWERS] min number of architectural structures and homes belong to
[[{'concept': 'Q811979'}, {'concept': 'Q7743'}], 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MIN ( ?e ) AS ?h ) { SELECT DISTINCT ( COUNT ( ?o ) AS ?e ) ?i WHERE { { ?o property:P17 ?i . ?i rdf:type ontology:Q1048835 . ?o rdf:type ontology:Q7743 } UNION { ?o property:P17 ?i . ?i rdf:type ontology:Q1048835 . ?o rdf:type ontology:Q811979 } } GROUP BY ?i } } . FILTER ( ?v = ?h ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?v ) ?k WHERE { { ?u property:P17 ?k . ?k rdf:type ontology:Q1048835 . ?u rdf:type ontology:Q811979 } UNION { ?u property:P17 ?k . ?k rdf:type ontology:Q1048835 . ?u rdf:type ontology:Q7743 } } GROUP BY ?k } }
Mandatory Palestine Gabon Kingdom of Kartli Antarctic Treaty area Emirate of Bukhara Federal Republic of Yugoslavia Union of South Africa Grenada Archduchy of Austria Saint Kitts and Nevis Camarines Sur Saint Pierre and Miquelon Electoral Palatinate Duchy of Cleves Landgraviate of Hesse-Darmstadt Montserrat Duchy of Rome Catalonia Albay South-West Africa Dominion of Newfoundland Sark British Hong Kong Negros Occidental Golden Horde Kingdom of Etruria Hanau-Münzenberg Palawan Palestinian territories Equador, Rio Grande do Norte Kalimantan Timur Pitcairn Islands Anguilla Ancient Rome Saint Vincent and the Grenadines Falkland Islands Walloon Region Flemish Region County of Provence Landgraviate of Hesse-Kassel Agüimes, Las Palmas South Georgia and the South Sandwich Islands Highland Duchy of Mirandola Irish Free State British Raj
Catalonia, Gabon and Grenada min number of architectural structures and homes belong to
Catalonia Gabon Grenada
action argmin
action union
action find_reverse_tuple_counts
relation country
type political territorial entity
type architectural structure
action find_reverse_tuple_counts
relation country
type political territorial entity
type home
[[{'concept': 'architectural structure'}, {'concept': 'home'}], 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MIN ( ?e ) AS ?h ) { SELECT DISTINCT ( COUNT ( ?o ) AS ?e ) ?i WHERE { { ?o property:country ?i . ?i rdf:type ontology:political_territorial_entity . ?o rdf:type ontology:home } UNION { ?o property:country ?i . ?i rdf:type ontology:political_territorial_entity . ?o rdf:type ontology:architectural_structure } } GROUP BY ?i } } . FILTER ( ?v = ?h ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?v ) ?k WHERE { { ?u property:country ?k . ?k rdf:type ontology:political_territorial_entity . ?u rdf:type ontology:architectural_structure } UNION { ?u property:country ?k . ?k rdf:type ontology:political_territorial_entity . ?u rdf:type ontology:home } } GROUP BY ?k } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P138
Q56061 Q151885 Q82799
USER
Which names have approximately 1 administrative territories and concepts as their namesake ?
(c(Q82799),P138,c(Q56061)|c(Q151885))
action approx
action union
action find_tuple_counts
relation P138
type Q82799
type Q56061
action find_tuple_counts
relation P138
type Q82799
type Q151885
value 1
[{'concept': 'Q82799'}, 'P138', [{'concept': 'Q56061'}, {'concept': 'Q151885'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?l ) AS ?w ) WHERE { ?l rdf:type ?d . VALUES ( ?d ) { ( ontology:Q56061 ) ( ontology:Q151885 ) } } GROUP BY ?b } . FILTER ( ?w = 1 ) }
action approx
action union
action find_tuple_counts
relation named after
type name
type administrative territorial entity
action find_tuple_counts
relation named after
type name
type concept
value 1
[{'concept': 'name'}, 'named after', [{'concept': 'administrative territorial entity'}, {'concept': 'concept'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?l ) AS ?w ) WHERE { ?l rdf:type ?d . VALUES ( ?d ) { ( ontology:administrative_territorial_entity ) ( ontology:concept ) } } GROUP BY ?b } . FILTER ( ?w = 1 ) }
[]
administrative territorial entity concept name
Q22922124 Q16877784 Q13626156
SYSTEM
von Mecklenburg-Schwerin, Napoli, Ackermann
Q23688105 Q13626156 Q22922124 Q16877784
(c(Q82799),P138,c(Q56061)|c(Q151885))
action approx
action union
action find_tuple_counts
relation P138
type Q82799
type Q56061
action find_tuple_counts
relation P138
type Q82799
type Q151885
value 1
[ANSWERS] have approximately 1 administrative territories and concepts as their namesake
[{'concept': 'Q82799'}, 'P138', [{'concept': 'Q56061'}, {'concept': 'Q151885'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?l ) AS ?w ) WHERE { ?l rdf:type ?d . VALUES ( ?d ) { ( ontology:Q56061 ) ( ontology:Q151885 ) } } GROUP BY ?b } . FILTER ( ?w = 1 ) }
de Bragança Ackermann von Mecklenburg-Schwerin Napoli
Von Mecklenburg-Schwerin, Napoli and Ackermann have approximately 1 administrative territories and concepts as their namesake
von Mecklenburg-Schwerin Napoli Ackermann
action approx
action union
action find_tuple_counts
relation named after
type name
type administrative territorial entity
action find_tuple_counts
relation named after
type name
type concept
value 1
[{'concept': 'name'}, 'named after', [{'concept': 'administrative territorial entity'}, {'concept': 'concept'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?l ) AS ?w ) WHERE { ?l rdf:type ?d . VALUES ( ?d ) { ( ontology:administrative_territorial_entity ) ( ontology:concept ) } } GROUP BY ?b } . FILTER ( ?w = 1 ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q22922124
P734
Q502895
USER
Who has that name as surname ?
(c(Q502895),P734,Q22922124)
action filter_type
action find_reverse
entity Q22922124
relation P734
type Q502895
[{'concept': 'Q502895'}, 'P734', 'Q22922124']
SELECT DISTINCT ?d WHERE { ?d property:P734 resource:Q22922124 . ?d rdf:type ontology:Q502895 }
von Mecklenburg-Schwerin
action filter_type
action find_reverse
entity von Mecklenburg-Schwerin
relation family name
type common name
[{'concept': 'common name'}, 'family name', 'von Mecklenburg-Schwerin']
SELECT DISTINCT ?d WHERE { ?d property:family_name resource:von_Mecklenburg-Schwerin . ?d rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q16877784
SYSTEM
Did you mean Napoli ?
Q22922124 Q16877784 Q13626156
(c(Q502895),P734,Q22922124) (c(Q502895),P734,Q16877784) (c(Q502895),P734,Q13626156)
[ANSWER]
[{'concept': 'Q502895'}, 'P734', 'Q22922124'] [{'concept': 'Q502895'}, 'P734', 'Q16877784'] [{'concept': 'Q502895'}, 'P734', 'Q13626156']
SELECT DISTINCT ?d WHERE { ?d property:P734 resource:Q22922124 . ?d rdf:type ontology:Q502895 }
von Mecklenburg-Schwerin Napoli Ackermann
Did you mean Napoli ?
Napoli
[{'concept': 'common name'}, 'family name', 'von Mecklenburg-Schwerin'] [{'concept': 'common name'}, 'family name', 'Napoli'] [{'concept': 'common name'}, 'family name', 'Ackermann']
SELECT DISTINCT ?d WHERE { ?d property:family_name resource:von_Mecklenburg-Schwerin . ?d rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant von Mecklenburg-Schwerin. Could you tell me the answer for that?
(c(Q502895),P734,Q22922124)
Q22922124
[{'concept': 'Q502895'}, 'P734', 'Q22922124']
[{'concept': 'common name'}, 'family name', 'von Mecklenburg-Schwerin']
[]
Q571387
SYSTEM
Johann VII, Duke of Mecklenburg
Q571387
(c(Q502895),P734,Q22922124)
action filter_type
action find_reverse
entity Q22922124
relation P734
type Q502895
[ANSWER] has that name as surname
[{'concept': 'Q502895'}, 'P734', 'Q22922124']
SELECT DISTINCT ?d WHERE { ?d property:P734 resource:Q22922124 . ?d rdf:type ontology:Q502895 }
Johann VII, Duke of Mecklenburg
Johann VII, Duke of Mecklenburg has that name as surname
Johann VII, Duke of Mecklenburg
action filter_type
action find_reverse
entity von Mecklenburg-Schwerin
relation family name
type common name
[{'concept': 'common name'}, 'family name', 'von Mecklenburg-Schwerin']
SELECT DISTINCT ?d WHERE { ?d property:family_name resource:von_Mecklenburg-Schwerin . ?d rdf:type ontology:common_name }
[]