Simple Question (Direct)
Simple Question
Q920038
P106
Q12737077
USER
What are the professions of Vic Buckingham ?
(Q920038,P106,c(Q12737077))
action filter_type
action find
entity Q920038
relation P106
type Q12737077
['Q920038', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q12737077 . resource:Q920038 property:P106 ?k }
Vic Buckingham
action filter_type
action find
entity Vic Buckingham
relation occupation
type occupation
['Vic Buckingham', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:occupation . resource:Vic_Buckingham property:occupation ?k }
[]
occupation
Q628099 Q937857
SYSTEM
association football manager, association football player
Q628099 Q937857
(Q920038,P106,c(Q12737077))
action filter_type
action find
entity Q920038
relation P106
type Q12737077
The professions of Vic Buckingham are the [ANSWERS]
['Q920038', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q12737077 . resource:Q920038 property:P106 ?k }
association football manager association football player
The professions of Vic Buckingham are the association football manager and association football player
association football manager association football player
action filter_type
action find
entity Vic Buckingham
relation occupation
type occupation
['Vic Buckingham', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:occupation . resource:Vic_Buckingham property:occupation ?k }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q920038
P735
Q82799
USER
Which name is Vic Buckingham known by ?
(Q920038,P735,c(Q82799))
action filter_type
action find
entity Q920038
relation P735
type Q82799
['Q920038', 'P735', {'concept': 'Q82799'}]
SELECT DISTINCT ?r WHERE { resource:Q920038 property:P735 ?r . ?r rdf:type ontology:Q82799 }
Vic Buckingham
action filter_type
action find
entity Vic Buckingham
relation given name
type name
['Vic Buckingham', 'given name', {'concept': 'name'}]
SELECT DISTINCT ?r WHERE { resource:Vic_Buckingham property:given_name ?r . ?r rdf:type ontology:name }
[]
name
Q16282445
SYSTEM
Vic
Q16282445
(Q920038,P735,c(Q82799))
action filter_type
action find
entity Q920038
relation P735
type Q82799
[ANSWER] Buckingham is known as [ANSWER]
['Q920038', 'P735', {'concept': 'Q82799'}]
SELECT DISTINCT ?r WHERE { resource:Q920038 property:P735 ?r . ?r rdf:type ontology:Q82799 }
Vic
Vic Buckingham is known as Vic
Vic
action filter_type
action find
entity Vic Buckingham
relation given name
type name
['Vic Buckingham', 'given name', {'concept': 'name'}]
SELECT DISTINCT ?r WHERE { resource:Vic_Buckingham property:given_name ?r . ?r rdf:type ontology:name }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q2877797
Q82799
USER
And how about Babe Donnelly?
(Q2877797,P735,c(Q82799))
action filter_type
action find
entity Q2877797
relation P735
type Q82799
['Q2877797', 'P735', {'concept': 'Q82799'}]
SELECT DISTINCT ?a WHERE { resource:Q2877797 property:P735 ?a . ?a rdf:type ontology:Q82799 }
Babe Donnelly
action filter_type
action find
entity Babe Donnelly
relation given name
type name
['Babe Donnelly', 'given name', {'concept': 'name'}]
SELECT DISTINCT ?a WHERE { resource:Babe_Donnelly property:given_name ?a . ?a rdf:type ontology:name }
[]
name
Q20084058
SYSTEM
Babe
Q20084058
(Q2877797,P735,c(Q82799))
action filter_type
action find
entity Q2877797
relation P735
type Q82799
[ANSWER]
['Q2877797', 'P735', {'concept': 'Q82799'}]
SELECT DISTINCT ?a WHERE { resource:Q2877797 property:P735 ?a . ?a rdf:type ontology:Q82799 }
Babe
Babe
action filter_type
action find
entity Babe Donnelly
relation given name
type name
['Babe Donnelly', 'given name', {'concept': 'name'}]
SELECT DISTINCT ?a WHERE { resource:Babe_Donnelly property:given_name ?a . ?a rdf:type ontology:name }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q232916 Q2877797
P27
Q1048835
USER
Which political territories do Babe Donnelly or Abraham Ortelius belong to ?
OR((Q2877797,P27,c(Q1048835)), (Q232916,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q2877797
relation P27
action find
entity Q232916
relation P27
type Q1048835
{'OR': [['Q2877797', 'P27', {'concept': 'Q1048835'}], ['Q232916', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?k WHERE { { VALUES ( ?j ) { ( resource:Q232916 ) ( resource:Q2877797 ) } . ?j property:P27 ?k } . ?k rdf:type ontology:Q1048835 }
Abraham Ortelius Babe Donnelly
action filter_type
action union
action find
entity Babe Donnelly
relation country of citizenship
action find
entity Abraham Ortelius
relation country of citizenship
type political territorial entity
{'OR': [['Babe Donnelly', 'country of citizenship', {'concept': 'political territorial entity'}], ['Abraham Ortelius', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { VALUES ( ?j ) { ( resource:Abraham_Ortelius ) ( resource:Babe_Donnelly ) } . ?j property:country_of_citizenship ?k } . ?k rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q234 Q16
SYSTEM
Flemish Region, Canada
Q234 Q16
OR((Q2877797,P27,c(Q1048835)), (Q232916,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q2877797
relation P27
action find
entity Q232916
relation P27
type Q1048835
Babe Donnelly or Abraham Ortelius belong to the [ANSWERS]
{'OR': [['Q2877797', 'P27', {'concept': 'Q1048835'}], ['Q232916', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?k WHERE { { VALUES ( ?j ) { ( resource:Q232916 ) ( resource:Q2877797 ) } . ?j property:P27 ?k } . ?k rdf:type ontology:Q1048835 }
Flemish Region Canada
Babe Donnelly or Abraham Ortelius belong to the Flemish Region and Canada
Flemish Region Canada
action filter_type
action union
action find
entity Babe Donnelly
relation country of citizenship
action find
entity Abraham Ortelius
relation country of citizenship
type political territorial entity
{'OR': [['Babe Donnelly', 'country of citizenship', {'concept': 'political territorial entity'}], ['Abraham Ortelius', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { VALUES ( ?j ) { ( resource:Abraham_Ortelius ) ( resource:Babe_Donnelly ) } . ?j property:country_of_citizenship ?k } . ?k rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q234 Q16
P1313
Q12737077
USER
Which occupations serve as the political office that are fulfilled by the head of the government of those political territories ?
(Q234,P1313,c(Q12737077)) (Q16,P1313,c(Q12737077))
action filter_type
action find
entity prev_answer
relation P1313
type Q12737077
['Q234', 'P1313', {'concept': 'Q12737077'}] ['Q16', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q12737077 . ?m property:P1313 ?s . VALUES ( ?m ) { ( resource:Q234 ) ( resource:Q16 ) } }
Flemish Region Canada
action filter_type
action find
entity prev_answer
relation office held by head of government
type occupation
['Flemish Region', 'office held by head of government', {'concept': 'occupation'}] ['Canada', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:occupation . ?m property:office_held_by_head_of_government ?s . VALUES ( ?m ) { ( resource:Flemish_Region ) ( resource:Canada ) } }
[]
occupation
Q2746377 Q839078
SYSTEM
Minister-President of Flanders, Prime Minister of Canada
Q2746377 Q839078
(Q234,P1313,c(Q12737077)) (Q16,P1313,c(Q12737077))
action filter_type
action find
entity prev_answer
relation P1313
type Q12737077
Respectively [ANSWERS] serve as the political office that are fulfilled by the head of the government of those political territories
['Q234', 'P1313', {'concept': 'Q12737077'}] ['Q16', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q12737077 . ?m property:P1313 ?s . VALUES ( ?m ) { ( resource:Q234 ) ( resource:Q16 ) } }
Minister-President of Flanders Prime Minister of Canada
Respectively Minister-President of Flanders and Prime Minister of Canada serve as the political office that are fulfilled by the head of the government of those political territories
Minister-President of Flanders Prime Minister of Canada
action filter_type
action find
entity prev_answer
relation office held by head of government
type occupation
['Flemish Region', 'office held by head of government', {'concept': 'occupation'}] ['Canada', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:occupation . ?m property:office_held_by_head_of_government ?s . VALUES ( ?m ) { ( resource:Flemish_Region ) ( resource:Canada ) } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q2746377 Q839078
P1313
Q1048835
USER
Which political territories have those occupations as position of head of government ?
(c(Q1048835),P1313,Q2746377) (c(Q1048835),P1313,Q839078)
action filter_type
action find_reverse
entity prev_answer
relation P1313
type Q1048835
[{'concept': 'Q1048835'}, 'P1313', 'Q2746377'] [{'concept': 'Q1048835'}, 'P1313', 'Q839078']
SELECT DISTINCT ?c WHERE { VALUES ( ?a ) { ( resource:Q2746377 ) ( resource:Q839078 ) } . ?c rdf:type ontology:Q1048835 . ?c property:P1313 ?a }
Minister-President of Flanders Prime Minister of Canada
action filter_type
action find_reverse
entity prev_answer
relation office held by head of government
type political territorial entity
[{'concept': 'political territorial entity'}, 'office held by head of government', 'Minister-President of Flanders'] [{'concept': 'political territorial entity'}, 'office held by head of government', 'Prime Minister of Canada']
SELECT DISTINCT ?c WHERE { VALUES ( ?a ) { ( resource:Minister-President_of_Flanders ) ( resource:Prime_Minister_of_Canada ) } . ?c rdf:type ontology:political_territorial_entity . ?c property:office_held_by_head_of_government ?a }
[]
political territorial entity
Q234 Q16
SYSTEM
Flemish Region, Canada
Q234 Q16
(c(Q1048835),P1313,Q2746377) (c(Q1048835),P1313,Q839078)
action filter_type
action find_reverse
entity prev_answer
relation P1313
type Q1048835
[ANSWERS] have those occupations as position of head of government
[{'concept': 'Q1048835'}, 'P1313', 'Q2746377'] [{'concept': 'Q1048835'}, 'P1313', 'Q839078']
SELECT DISTINCT ?c WHERE { VALUES ( ?a ) { ( resource:Q2746377 ) ( resource:Q839078 ) } . ?c rdf:type ontology:Q1048835 . ?c property:P1313 ?a }
Flemish Region Canada
Flemish Region and Canada have those occupations as position of head of government
Flemish Region Canada
action filter_type
action find_reverse
entity prev_answer
relation office held by head of government
type political territorial entity
[{'concept': 'political territorial entity'}, 'office held by head of government', 'Minister-President of Flanders'] [{'concept': 'political territorial entity'}, 'office held by head of government', 'Prime Minister of Canada']
SELECT DISTINCT ?c WHERE { VALUES ( ?a ) { ( resource:Minister-President_of_Flanders ) ( resource:Prime_Minister_of_Canada ) } . ?c rdf:type ontology:political_territorial_entity . ?c property:office_held_by_head_of_government ?a }
[]
Clarification
Simple Question|Single Entity|Indirect
Q234
P36
Q56061
USER
Which administrative territory is known as the capital of that political territory ?
(Q234,P36,c(Q56061))
action filter_type
action find
entity Q234
relation P36
type Q56061
['Q234', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q56061 . resource:Q234 property:P36 ?z }
Flemish Region
action filter_type
action find
entity Flemish Region
relation capital
type administrative territorial entity
['Flemish Region', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:administrative_territorial_entity . resource:Flemish_Region property:capital ?z }
[]
administrative territorial entity
Clarification for simple ques.
Q16
SYSTEM
Did you mean Canada ?
Q234 Q16
(Q234,P36,c(Q56061)) (Q16,P36,c(Q56061))
[ANSWER]
['Q234', 'P36', {'concept': 'Q56061'}] ['Q16', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q56061 . resource:Q234 property:P36 ?z }
Flemish Region Canada
Did you mean Canada ?
Canada
['Flemish Region', 'capital', {'concept': 'administrative territorial entity'}] ['Canada', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:administrative_territorial_entity . resource:Flemish_Region property:capital ?z }
[]
Simple Question (Coreferenced)
USER
No, I meant Flemish Region. Could you tell me the answer for that?
(Q234,P36,c(Q56061))
Q234
['Q234', 'P36', {'concept': 'Q56061'}]
['Flemish Region', 'capital', {'concept': 'administrative territorial entity'}]
[]
Q239
SYSTEM
Brussels
Q239
(Q234,P36,c(Q56061))
action filter_type
action find
entity Q234
relation P36
type Q56061
[ANSWER] is known as the capital of that political territory
['Q234', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q56061 . resource:Q234 property:P36 ?z }
Brussels
Brussels is known as the capital of that political territory
Brussels
action filter_type
action find
entity Flemish Region
relation capital
type administrative territorial entity
['Flemish Region', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:administrative_territorial_entity . resource:Flemish_Region property:capital ?z }
[]