Simple Question (Direct)
Simple Question
Q18816165
P106
Q12737077
USER
Which occupation is the profession of Andrew Heeps ?
(Q18816165,P106,c(Q12737077))
action filter_type
action find
entity Q18816165
relation P106
type Q12737077
['Q18816165', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { resource:Q18816165 property:P106 ?c . ?c rdf:type ontology:Q12737077 }
Andrew Heeps
action filter_type
action find
entity Andrew Heeps
relation occupation
type occupation
['Andrew Heeps', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { resource:Andrew_Heeps property:occupation ?c . ?c rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q18816165,P106,c(Q12737077))
action filter_type
action find
entity Q18816165
relation P106
type Q12737077
Player [ANSWER] is the profession of Andrew Heeps
['Q18816165', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { resource:Q18816165 property:P106 ?c . ?c rdf:type ontology:Q12737077 }
association football player
Player association football player is the profession of Andrew Heeps
association football player
action filter_type
action find
entity Andrew Heeps
relation occupation
type occupation
['Andrew Heeps', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { resource:Andrew_Heeps property:occupation ?c . ?c rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q18816165
P19
Q56061
USER
Which administrative territory was Andrew Heeps born in ?
(Q18816165,P19,c(Q56061))
action filter_type
action find
entity Q18816165
relation P19
type Q56061
['Q18816165', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?j WHERE { resource:Q18816165 property:P19 ?j . ?j rdf:type ontology:Q56061 }
Andrew Heeps
action filter_type
action find
entity Andrew Heeps
relation place of birth
type administrative territorial entity
['Andrew Heeps', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Andrew_Heeps property:place_of_birth ?j . ?j rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q182923
SYSTEM
Stirling
Q182923
(Q18816165,P19,c(Q56061))
action filter_type
action find
entity Q18816165
relation P19
type Q56061
Andrew Heeps was born at [ANSWER]
['Q18816165', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?j WHERE { resource:Q18816165 property:P19 ?j . ?j rdf:type ontology:Q56061 }
Stirling
Andrew Heeps was born at Stirling
Stirling
action filter_type
action find
entity Andrew Heeps
relation place of birth
type administrative territorial entity
['Andrew Heeps', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Andrew_Heeps property:place_of_birth ?j . ?j rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q182923
P17
Q15617994
USER
Which administrative territory is that administrative territory located in ?
(Q182923,P17,c(Q15617994))
action filter_type
action find
entity Q182923
relation P17
type Q15617994
['Q182923', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { resource:Q182923 property:P17 ?i . ?i rdf:type ontology:Q15617994 }
Stirling
action filter_type
action find
entity Stirling
relation country
type designation for an administrative territorial entity
['Stirling', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Stirling property:country ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q182923,P17,c(Q15617994))
action filter_type
action find
entity Q182923
relation P17
type Q15617994
That administrative territory is located in [ANSWER]
['Q182923', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { resource:Q182923 property:P17 ?i . ?i rdf:type ontology:Q15617994 }
United Kingdom
That administrative territory is located in United Kingdom
United Kingdom
action filter_type
action find
entity Stirling
relation country
type designation for an administrative territorial entity
['Stirling', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Stirling property:country ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q182923
P47
Q56061
USER
Which administrative territory is next to the border of that one ?
(c(Q56061),P47,Q145)
action filter_type
action find
entity Q182923
relation P47
type Q56061
[{'concept': 'Q56061'}, 'P47', 'Q145']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q56061 . resource:Q182923 property:P47 ?w }
Stirling
action filter_type
action find
entity Stirling
relation shares border with
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'shares border with', 'United Kingdom']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:administrative_territorial_entity . resource:Stirling property:shares_border_with ?w }
[]
administrative territorial entity
Q1014066
SYSTEM
Callander
Q1014066
(c(Q56061),P47,Q145)
action filter_type
action find
entity Q182923
relation P47
type Q56061
[ANSWER] is next to the border of that one
[{'concept': 'Q56061'}, 'P47', 'Q145']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q56061 . resource:Q182923 property:P47 ?w }
Callander
Callander is next to the border of that one
Callander
action filter_type
action find
entity Stirling
relation shares border with
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'shares border with', 'United Kingdom']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:administrative_territorial_entity . resource:Stirling property:shares_border_with ?w }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3060182 Q18816165
P27
Q15617994
USER
Which administrative territories are Andrew Heeps or Yevgeny Starostin an inhabitant of ?
OR((Q18816165,P27,c(Q15617994)), (Q3060182,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q18816165
relation P27
action find
entity Q3060182
relation P27
type Q15617994
{'OR': [['Q18816165', 'P27', {'concept': 'Q15617994'}], ['Q3060182', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q15617994 . { ?k property:P27 ?v . VALUES ( ?k ) { ( resource:Q18816165 ) ( resource:Q3060182 ) } } }
Yevgeny Starostin Andrew Heeps
action filter_type
action union
action find
entity Andrew Heeps
relation country of citizenship
action find
entity Yevgeny Starostin
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Andrew Heeps', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Yevgeny Starostin', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . { ?k property:country_of_citizenship ?v . VALUES ( ?k ) { ( resource:Andrew_Heeps ) ( resource:Yevgeny_Starostin ) } } }
[]
designation for an administrative territorial entity
Q159 Q145
SYSTEM
Russia, United Kingdom
Q159 Q145
OR((Q18816165,P27,c(Q15617994)), (Q3060182,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q18816165
relation P27
action find
entity Q3060182
relation P27
type Q15617994
[ANSWERS] are Andrew Heeps or Yevgeny Starostin an inhabitant of
{'OR': [['Q18816165', 'P27', {'concept': 'Q15617994'}], ['Q3060182', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q15617994 . { ?k property:P27 ?v . VALUES ( ?k ) { ( resource:Q18816165 ) ( resource:Q3060182 ) } } }
Russia United Kingdom
Russia and United Kingdom are Andrew Heeps or Yevgeny Starostin an inhabitant of
Russia United Kingdom
action filter_type
action union
action find
entity Andrew Heeps
relation country of citizenship
action find
entity Yevgeny Starostin
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Andrew Heeps', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Yevgeny Starostin', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . { ?k property:country_of_citizenship ?v . VALUES ( ?k ) { ( resource:Andrew_Heeps ) ( resource:Yevgeny_Starostin ) } } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P138
Q43229 Q2221906 Q56061
USER
Which administrative territories come from max number of organizations and geographic locations ?
(c(Q56061),P138,c(Q43229)|c(Q2221906))
action argmax
action union
action find_tuple_counts
relation P138
type Q56061
type Q43229
action find_tuple_counts
relation P138
type Q56061
type Q2221906
[{'concept': 'Q56061'}, 'P138', [{'concept': 'Q43229'}, {'concept': 'Q2221906'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MAX ( ?k ) AS ?f ) { SELECT DISTINCT ?j ( COUNT ( ?r ) AS ?k ) WHERE { VALUES ( ?a ) { ( ontology:Q2221906 ) ( ontology:Q43229 ) } . ?r rdf:type ?a } GROUP BY ?j } } . FILTER ( ?x = ?f ) . { SELECT DISTINCT ?g ( COUNT ( ?n ) AS ?x ) WHERE { VALUES ( ?u ) { ( ontology:Q43229 ) ( ontology:Q2221906 ) } . ?n rdf:type ?u } GROUP BY ?g } }
action argmax
action union
action find_tuple_counts
relation named after
type administrative territorial entity
type organization
action find_tuple_counts
relation named after
type administrative territorial entity
type geographic location
[{'concept': 'administrative territorial entity'}, 'named after', [{'concept': 'organization'}, {'concept': 'geographic location'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MAX ( ?k ) AS ?f ) { SELECT DISTINCT ?j ( COUNT ( ?r ) AS ?k ) WHERE { VALUES ( ?a ) { ( ontology:geographic_location ) ( ontology:organization ) } . ?r rdf:type ?a } GROUP BY ?j } } . FILTER ( ?x = ?f ) . { SELECT DISTINCT ?g ( COUNT ( ?n ) AS ?x ) WHERE { VALUES ( ?u ) { ( ontology:organization ) ( ontology:geographic_location ) } . ?n rdf:type ?u } GROUP BY ?g } }
[]
organization geographic location administrative territorial entity
Q906740 Q2198018 Q458
SYSTEM
Diósgyőr-Vasgyár, Batadorp, European Union
Q906740 Q2198018 Q458
(c(Q56061),P138,c(Q43229)|c(Q2221906))
action argmax
action union
action find_tuple_counts
relation P138
type Q56061
type Q43229
action find_tuple_counts
relation P138
type Q56061
type Q2221906
[ANSWERS] come from max number of organizations and geographic locations
[{'concept': 'Q56061'}, 'P138', [{'concept': 'Q43229'}, {'concept': 'Q2221906'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MAX ( ?k ) AS ?f ) { SELECT DISTINCT ?j ( COUNT ( ?r ) AS ?k ) WHERE { VALUES ( ?a ) { ( ontology:Q2221906 ) ( ontology:Q43229 ) } . ?r rdf:type ?a } GROUP BY ?j } } . FILTER ( ?x = ?f ) . { SELECT DISTINCT ?g ( COUNT ( ?n ) AS ?x ) WHERE { VALUES ( ?u ) { ( ontology:Q43229 ) ( ontology:Q2221906 ) } . ?n rdf:type ?u } GROUP BY ?g } }
Diósgyőr-Vasgyár Batadorp European Union
Diósgyőr-Vasgyár, Batadorp and European Union come from max number of organizations and geographic locations
Diósgyőr-Vasgyár Batadorp European Union
action argmax
action union
action find_tuple_counts
relation named after
type administrative territorial entity
type organization
action find_tuple_counts
relation named after
type administrative territorial entity
type geographic location
[{'concept': 'administrative territorial entity'}, 'named after', [{'concept': 'organization'}, {'concept': 'geographic location'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MAX ( ?k ) AS ?f ) { SELECT DISTINCT ?j ( COUNT ( ?r ) AS ?k ) WHERE { VALUES ( ?a ) { ( ontology:geographic_location ) ( ontology:organization ) } . ?r rdf:type ?a } GROUP BY ?j } } . FILTER ( ?x = ?f ) . { SELECT DISTINCT ?g ( COUNT ( ?n ) AS ?x ) WHERE { VALUES ( ?u ) { ( ontology:organization ) ( ontology:geographic_location ) } . ?n rdf:type ?u } GROUP BY ?g } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q458
P463
Q484652
USER
Which international organization was that administrative territory a member of ?
(Q458,P463,c(Q484652))
action filter_type
action find
entity Q458
relation P463
type Q484652
['Q458', 'P463', {'concept': 'Q484652'}]
SELECT DISTINCT ?q WHERE { resource:Q458 property:P463 ?q . ?q rdf:type ontology:Q484652 }
European Union
action filter_type
action find
entity European Union
relation member of
type international organization
['European Union', 'member of', {'concept': 'international organization'}]
SELECT DISTINCT ?q WHERE { resource:European_Union property:member_of ?q . ?q rdf:type ontology:international_organization }
[]
international organization
Clarification for simple ques.
Q906740
SYSTEM
Did you mean Diósgyőr-Vasgyár ?
Q906740 Q2198018 Q458
(Q906740,P463,c(Q484652)) (Q2198018,P463,c(Q484652)) (Q458,P463,c(Q484652))
[ANSWER]
['Q906740', 'P463', {'concept': 'Q484652'}] ['Q2198018', 'P463', {'concept': 'Q484652'}] ['Q458', 'P463', {'concept': 'Q484652'}]
SELECT DISTINCT ?q WHERE { resource:Q458 property:P463 ?q . ?q rdf:type ontology:Q484652 }
Diósgyőr-Vasgyár Batadorp European Union
Did you mean Diósgyőr-Vasgyár ?
Diósgyőr-Vasgyár
['Diósgyőr-Vasgyár', 'member of', {'concept': 'international organization'}] ['Batadorp', 'member of', {'concept': 'international organization'}] ['European Union', 'member of', {'concept': 'international organization'}]
SELECT DISTINCT ?q WHERE { resource:European_Union property:member_of ?q . ?q rdf:type ontology:international_organization }
[]
Simple Question (Coreferenced)
USER
No, I meant European Union. Could you tell me the answer for that?
(Q458,P463,c(Q484652))
Q458
['Q458', 'P463', {'concept': 'Q484652'}]
['European Union', 'member of', {'concept': 'international organization'}]
[]
Q19771
SYSTEM
G20
Q19771
(Q458,P463,c(Q484652))
action filter_type
action find
entity Q458
relation P463
type Q484652
[ANSWER] was that administrative territory a member of
['Q458', 'P463', {'concept': 'Q484652'}]
SELECT DISTINCT ?q WHERE { resource:Q458 property:P463 ?q . ?q rdf:type ontology:Q484652 }
G20
G20 was that administrative territory a member of
G20
action filter_type
action find
entity European Union
relation member of
type international organization
['European Union', 'member of', {'concept': 'international organization'}]
SELECT DISTINCT ?q WHERE { resource:European_Union property:member_of ?q . ?q rdf:type ontology:international_organization }
[]