Simple Question (Direct)
Simple Question
Q6280761
P27
Q15617994
USER
Which administrative territory does Joseph A. Bennett belong to ?
(Q6280761,P27,c(Q15617994))
action filter_type
action find
entity Q6280761
relation P27
type Q15617994
['Q6280761', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { resource:Q6280761 property:P27 ?g . ?g rdf:type ontology:Q15617994 }
Joseph A. Bennett
action filter_type
action find
entity Joseph A. Bennett
relation country of citizenship
type designation for an administrative territorial entity
['Joseph A. Bennett', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Joseph_A._Bennett property:country_of_citizenship ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q6280761,P27,c(Q15617994))
action filter_type
action find
entity Q6280761
relation P27
type Q15617994
[ANSWER] does Joseph A. Bennett belong to
['Q6280761', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { resource:Q6280761 property:P27 ?g . ?g rdf:type ontology:Q15617994 }
United Kingdom
United Kingdom does Joseph A. Bennett belong to
United Kingdom
action filter_type
action find
entity Joseph A. Bennett
relation country of citizenship
type designation for an administrative territorial entity
['Joseph A. Bennett', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Joseph_A._Bennett property:country_of_citizenship ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6280761
P106
Q12737077
USER
Which occupation is the profession of Joseph A. Bennett ?
(Q6280761,P106,c(Q12737077))
action filter_type
action find
entity Q6280761
relation P106
type Q12737077
['Q6280761', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?d WHERE { resource:Q6280761 property:P106 ?d . ?d rdf:type ontology:Q12737077 }
Joseph A. Bennett
action filter_type
action find
entity Joseph A. Bennett
relation occupation
type occupation
['Joseph A. Bennett', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?d WHERE { resource:Joseph_A._Bennett property:occupation ?d . ?d rdf:type ontology:occupation }
[]
occupation
Q33999
SYSTEM
actor
Q33999
(Q6280761,P106,c(Q12737077))
action filter_type
action find
entity Q6280761
relation P106
type Q12737077
The [ANSWER] is the profession of Joseph A. Bennett
['Q6280761', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?d WHERE { resource:Q6280761 property:P106 ?d . ?d rdf:type ontology:Q12737077 }
actor
The actor is the profession of Joseph A. Bennett
actor
action filter_type
action find
entity Joseph A. Bennett
relation occupation
type occupation
['Joseph A. Bennett', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?d WHERE { resource:Joseph_A._Bennett property:occupation ?d . ?d rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6280761
P20
Q56061
USER
Where did that person expire ?
(Q33999,P20,c(Q56061))
action filter_type
action find
entity Q6280761
relation P20
type Q56061
['Q33999', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { resource:Q6280761 property:P20 ?d . ?d rdf:type ontology:Q56061 }
Joseph A. Bennett
action filter_type
action find
entity Joseph A. Bennett
relation place of death
type administrative territorial entity
['actor', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Joseph_A._Bennett property:place_of_death ?d . ?d rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q84
SYSTEM
London
Q84
(Q33999,P20,c(Q56061))
action filter_type
action find
entity Q6280761
relation P20
type Q56061
That person expired in [ANSWER]
['Q33999', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { resource:Q6280761 property:P20 ?d . ?d rdf:type ontology:Q56061 }
London
That person expired in London
London
action filter_type
action find
entity Joseph A. Bennett
relation place of death
type administrative territorial entity
['actor', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Joseph_A._Bennett property:place_of_death ?d . ?d rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q182428 Q84
P190
Q56061
USER
Which administrative territories are the sister cities of London or Silistra ?
OR((Q84,P190,c(Q56061)), (Q182428,P190,c(Q56061)))
action filter_type
action union
action find
entity Q84
relation P190
action find
entity Q182428
relation P190
type Q56061
{'OR': [['Q84', 'P190', {'concept': 'Q56061'}], ['Q182428', 'P190', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?u WHERE { { VALUES ( ?r ) { ( resource:Q182428 ) ( resource:Q84 ) } . ?r property:P190 ?u } . ?u rdf:type ontology:Q56061 }
Silistra London
action filter_type
action union
action find
entity London
relation sister city
action find
entity Silistra
relation sister city
type administrative territorial entity
{'OR': [['London', 'sister city', {'concept': 'administrative territorial entity'}], ['Silistra', 'sister city', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { VALUES ( ?r ) { ( resource:Silistra ) ( resource:London ) } . ?r property:sister_city ?u } . ?u rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q585 Q8686 Q956 Q241475 Q34820 Q23564 Q466221 Q3561 Q406 Q1490
SYSTEM
Some of them are Oslo, Shanghai, Beijing, Lida, Santo Domingo, Podgorica, Sylhet, Algiers, Istanbul, Tokyo
Q8686 Q1353 Q649 Q9248 Q472 Q34820 Q156717 Q987 Q1156 Q3630 Q466221 Q3561 Q1490 Q23564 Q1850 Q585 Q406 Q191465 Q157050 Q34647 Q956 Q309355 Q159273 Q64 Q65 Q431377 Q60 Q241475
OR((Q84,P190,c(Q56061)), (Q182428,P190,c(Q56061)))
action filter_type
action union
action find
entity Q84
relation P190
action find
entity Q182428
relation P190
type Q56061
[ANSWERS] are the sister cities of London or Silistra
{'OR': [['Q84', 'P190', {'concept': 'Q56061'}], ['Q182428', 'P190', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?u WHERE { { VALUES ( ?r ) { ( resource:Q182428 ) ( resource:Q84 ) } . ?r property:P190 ?u } . ?u rdf:type ontology:Q56061 }
Shanghai Delhi Moscow Baku Sofia Santo Domingo Khmelnytskyi New Delhi Mumbai Jakarta Sylhet Algiers Tokyo Podgorica Phnom Penh Oslo Istanbul Rzhev Veles Johannesburg Beijing Kikinda Arequipa Berlin Los Angeles Promissão New York City Lida
Oslo, Shanghai, Beijing, Lida, Santo Domingo, Podgorica, Sylhet, Algiers, Istanbul and Tokyo are the sister cities of London or Silistra
Oslo Shanghai Beijing Lida Santo Domingo Podgorica Sylhet Algiers Istanbul Tokyo
action filter_type
action union
action find
entity London
relation sister city
action find
entity Silistra
relation sister city
type administrative territorial entity
{'OR': [['London', 'sister city', {'concept': 'administrative territorial entity'}], ['Silistra', 'sister city', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { VALUES ( ?r ) { ( resource:Silistra ) ( resource:London ) } . ?r property:sister_city ?u } . ?u rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q182428
P17
Q15617994
USER
Which administrative territories are Silistra situated in ?
(Q182428,P17,c(Q15617994))
action filter_type
action find
entity Q182428
relation P17
type Q15617994
['Q182428', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { resource:Q182428 property:P17 ?o . ?o rdf:type ontology:Q15617994 }
Silistra
action filter_type
action find
entity Silistra
relation country
type designation for an administrative territorial entity
['Silistra', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Silistra property:country ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q389004 Q218 Q219
SYSTEM
Wallachia, Romania, Bulgaria
Q389004 Q218 Q219
(Q182428,P17,c(Q15617994))
action filter_type
action find
entity Q182428
relation P17
type Q15617994
Silistra are situated in [ANSWERS]
['Q182428', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { resource:Q182428 property:P17 ?o . ?o rdf:type ontology:Q15617994 }
Wallachia Romania Bulgaria
Silistra are situated in Wallachia, Romania and Bulgaria
Wallachia Romania Bulgaria
action filter_type
action find
entity Silistra
relation country
type designation for an administrative territorial entity
['Silistra', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Silistra property:country ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q218
P1001
Q12737077
USER
Which occupations apply to jurisdiction over that administrative territory ?
(c(Q12737077),P1001,Q218)
action filter_type
action find_reverse
entity Q218
relation P1001
type Q12737077
[{'concept': 'Q12737077'}, 'P1001', 'Q218']
SELECT DISTINCT ?p WHERE { ?p property:P1001 resource:Q218 . ?p rdf:type ontology:Q12737077 }
Romania
action filter_type
action find_reverse
entity Romania
relation applies to jurisdiction
type occupation
[{'concept': 'occupation'}, 'applies to jurisdiction', 'Romania']
SELECT DISTINCT ?p WHERE { ?p property:applies_to_jurisdiction resource:Romania . ?p rdf:type ontology:occupation }
[]
occupation
Clarification for simple ques.
Q389004
SYSTEM
Did you mean Wallachia ?
Q389004 Q218 Q219
(c(Q12737077),P1001,Q389004) (c(Q12737077),P1001,Q218) (c(Q12737077),P1001,Q219)
[ANSWER]
[{'concept': 'Q12737077'}, 'P1001', 'Q389004'] [{'concept': 'Q12737077'}, 'P1001', 'Q218'] [{'concept': 'Q12737077'}, 'P1001', 'Q219']
SELECT DISTINCT ?p WHERE { ?p property:P1001 resource:Q218 . ?p rdf:type ontology:Q12737077 }
Wallachia Romania Bulgaria
Did you mean Wallachia ?
Wallachia
[{'concept': 'occupation'}, 'applies to jurisdiction', 'Wallachia'] [{'concept': 'occupation'}, 'applies to jurisdiction', 'Romania'] [{'concept': 'occupation'}, 'applies to jurisdiction', 'Bulgaria']
SELECT DISTINCT ?p WHERE { ?p property:applies_to_jurisdiction resource:Romania . ?p rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
USER
No, I meant Romania. Could you tell me the answer for that?
(c(Q12737077),P1001,Q218)
Q218
[{'concept': 'Q12737077'}, 'P1001', 'Q218']
[{'concept': 'occupation'}, 'applies to jurisdiction', 'Romania']
[]
Q21503769 Q21389881 Q21504218
SYSTEM
Minister of Culture, Minister of Education, Minister of European Funds
Q7241368 Q21503774 Q21504218 Q21513080 Q21504216 Q21504145 Q839139 Q17556530 Q21504201 Q21503769 Q7241307 Q4294873 Q21389881 Q21503827 Q21504202 Q21504197 Q19938957 Q15304810 Q21503673 Q20884417 Q21159939
(c(Q12737077),P1001,Q218)
action filter_type
action find_reverse
entity Q218
relation P1001
type Q12737077
[ANSWERS] apply to jurisdiction over that administrative territory
[{'concept': 'Q12737077'}, 'P1001', 'Q218']
SELECT DISTINCT ?p WHERE { ?p property:P1001 resource:Q218 . ?p rdf:type ontology:Q12737077 }
President of the Senate of Romania Minister-delegate for relations with Romanians everywhere Minister of European Funds Minister of Transport and Infrastructure Minister of Public Finance Minister of Labor, Family and Social Protection President of Romania Member of the Chamber of Deputies of Romania Minister of Internal Affairs Minister of Culture President of the Chamber of Deputies of Romania Ministry of Justice Minister of Education Minister of Youth and Sport Minister-delegate for the relation with Parliament Minister of National Defence member of the Senate of Romania Prime Minister of Romania Minister of Foreign Affairs of Romania Minister of Communications and Information Society Minister of Justice of Romania
Minister of Culture, Minister of Education and Minister of European Funds apply to jurisdiction over that administrative territory
Minister of Culture Minister of Education Minister of European Funds
action filter_type
action find_reverse
entity Romania
relation applies to jurisdiction
type occupation
[{'concept': 'occupation'}, 'applies to jurisdiction', 'Romania']
SELECT DISTINCT ?p WHERE { ?p property:applies_to_jurisdiction resource:Romania . ?p rdf:type ontology:occupation }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q218
P47
Q15617994
USER
How many administrative territories have a shared border with Romania ?
(Q218,P47,c(Q15617994))
action count
action filter_type
action find
entity Q218
relation P47
type Q15617994
['Q218', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?q ) WHERE { resource:Q218 property:P47 ?o . ?o rdf:type ontology:Q15617994 }
Romania
action count
action filter_type
action find
entity Romania
relation shares border with
type designation for an administrative territorial entity
['Romania', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?q ) WHERE { resource:Romania property:shares_border_with ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
6
Q212 Q217 Q219 Q403 Q36 Q28
(Q218,P47,c(Q15617994))
action count
action filter_type
action find
entity Q218
relation P47
type Q15617994
[ANSWER]
['Q218', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?q ) WHERE { resource:Q218 property:P47 ?o . ?o rdf:type ontology:Q15617994 }
Ukraine Republic of Moldova Bulgaria Serbia Poland Hungary
6
action count
action filter_type
action find
entity Romania
relation shares border with
type designation for an administrative territorial entity
['Romania', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?q ) WHERE { resource:Romania property:shares_border_with ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q496885
Q15617994
USER
And what about Isnello?
(Q496885,P47,c(Q15617994))
action count
action filter_type
action find
entity Q496885
relation P47
type Q15617994
['Q496885', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?j ) WHERE { resource:Q496885 property:P47 ?i . ?i rdf:type ontology:Q15617994 }
Isnello
action count
action filter_type
action find
entity Isnello
relation shares border with
type designation for an administrative territorial entity
['Isnello', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?j ) WHERE { resource:Isnello property:shares_border_with ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
6
(Q496885,P47,c(Q15617994))
action count
action filter_type
action find
entity Q496885
relation P47
type Q15617994
[ANSWER]
['Q496885', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?j ) WHERE { resource:Q496885 property:P47 ?i . ?i rdf:type ontology:Q15617994 }
6
action count
action filter_type
action find
entity Isnello
relation shares border with
type designation for an administrative territorial entity
['Isnello', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?j ) WHERE { resource:Isnello property:shares_border_with ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P417
Q502895 Q12737077
USER
Which people are the patron saints of max number of occupations ?
(c(Q12737077),P417,Q208331)
action argmax
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
[{'concept': 'Q12737077'}, 'P417', 'Q208331']
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( MAX ( ?u ) AS ?h ) { SELECT DISTINCT ?q ( COUNT ( ?g ) AS ?u ) WHERE { ?g property:P417 ?q . ?q rdf:type ontology:Q502895 . ?g rdf:type ontology:Q12737077 } GROUP BY ?q } } . FILTER ( ?o = ?h ) . { SELECT DISTINCT ?t ( COUNT ( ?j ) AS ?o ) WHERE { ?j property:P417 ?t . ?t rdf:type ontology:Q502895 . ?j rdf:type ontology:Q12737077 } GROUP BY ?t } }
action argmax
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
[{'concept': 'occupation'}, 'patron saint', 'Olaf II of Norway']
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( MAX ( ?u ) AS ?h ) { SELECT DISTINCT ?q ( COUNT ( ?g ) AS ?u ) WHERE { ?g property:patron_saint ?q . ?q rdf:type ontology:common_name . ?g rdf:type ontology:occupation } GROUP BY ?q } } . FILTER ( ?o = ?h ) . { SELECT DISTINCT ?t ( COUNT ( ?j ) AS ?o ) WHERE { ?j property:patron_saint ?t . ?t rdf:type ontology:common_name . ?j rdf:type ontology:occupation } GROUP BY ?t } }
[]
common name occupation
Q179718
SYSTEM
Catherine of Alexandria
Q179718
(c(Q12737077),P417,Q208331)
action argmax
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
[ANSWER] is the patron saints of max number of occupations
[{'concept': 'Q12737077'}, 'P417', 'Q208331']
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( MAX ( ?u ) AS ?h ) { SELECT DISTINCT ?q ( COUNT ( ?g ) AS ?u ) WHERE { ?g property:P417 ?q . ?q rdf:type ontology:Q502895 . ?g rdf:type ontology:Q12737077 } GROUP BY ?q } } . FILTER ( ?o = ?h ) . { SELECT DISTINCT ?t ( COUNT ( ?j ) AS ?o ) WHERE { ?j property:P417 ?t . ?t rdf:type ontology:Q502895 . ?j rdf:type ontology:Q12737077 } GROUP BY ?t } }
Catherine of Alexandria
Catherine of Alexandria is the patron saints of max number of occupations
Catherine of Alexandria
action argmax
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
[{'concept': 'occupation'}, 'patron saint', 'Olaf II of Norway']
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( MAX ( ?u ) AS ?h ) { SELECT DISTINCT ?q ( COUNT ( ?g ) AS ?u ) WHERE { ?g property:patron_saint ?q . ?q rdf:type ontology:common_name . ?g rdf:type ontology:occupation } GROUP BY ?q } } . FILTER ( ?o = ?h ) . { SELECT DISTINCT ?t ( COUNT ( ?j ) AS ?o ) WHERE { ?j property:patron_saint ?t . ?t rdf:type ontology:common_name . ?j rdf:type ontology:occupation } GROUP BY ?t } }
[]