Simple Question (Direct)
Simple Question
Q7793705
P734
Q82799
USER
Which name is associated with Thomas Ryan ?
(Q7793705,P734,c(Q82799))
action filter_type
action find
entity Q7793705
relation P734
type Q82799
['Q7793705', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?h WHERE { resource:Q7793705 property:P734 ?h . ?h rdf:type ontology:Q82799 }
Thomas Ryan
action filter_type
action find
entity Thomas Ryan
relation family name
type name
['Thomas Ryan', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?h WHERE { resource:Thomas_Ryan property:family_name ?h . ?h rdf:type ontology:name }
[]
name
Q5263823
SYSTEM
Ryan
Q5263823
(Q7793705,P734,c(Q82799))
action filter_type
action find
entity Q7793705
relation P734
type Q82799
[ANSWER] is associated with Thomas [ANSWER]
['Q7793705', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?h WHERE { resource:Q7793705 property:P734 ?h . ?h rdf:type ontology:Q82799 }
Ryan
Ryan is associated with Thomas Ryan
Ryan
action filter_type
action find
entity Thomas Ryan
relation family name
type name
['Thomas Ryan', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?h WHERE { resource:Thomas_Ryan property:family_name ?h . ?h rdf:type ontology:name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7793705
P21
Q290
USER
Which sex does that person have ?
(Q5263823,P21,c(Q290))
action filter_type
action find
entity Q7793705
relation P21
type Q290
['Q5263823', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?j WHERE { resource:Q7793705 property:P21 ?j . ?j rdf:type ontology:Q290 }
Thomas Ryan
action filter_type
action find
entity Thomas Ryan
relation gender
type sex
['Ryan', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?j WHERE { resource:Thomas_Ryan property:gender ?j . ?j rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q5263823,P21,c(Q290))
action filter_type
action find
entity Q7793705
relation P21
type Q290
That person has a [ANSWER]
['Q5263823', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?j WHERE { resource:Q7793705 property:P21 ?j . ?j rdf:type ontology:Q290 }
male
That person has a male
male
action filter_type
action find
entity Thomas Ryan
relation gender
type sex
['Ryan', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?j WHERE { resource:Thomas_Ryan property:gender ?j . ?j rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7793705
P27
Q1048835
USER
Which political territory is that person a civilian of ?
(Q6581097,P27,c(Q1048835))
action filter_type
action find
entity Q7793705
relation P27
type Q1048835
['Q6581097', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q1048835 . resource:Q7793705 property:P27 ?o }
Thomas Ryan
action filter_type
action find
entity Thomas Ryan
relation country of citizenship
type political territorial entity
['male', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:political_territorial_entity . resource:Thomas_Ryan property:country_of_citizenship ?o }
[]
political territorial entity
Q16
SYSTEM
Canada
Q16
(Q6581097,P27,c(Q1048835))
action filter_type
action find
entity Q7793705
relation P27
type Q1048835
[ANSWER] is that person a civilian of
['Q6581097', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q1048835 . resource:Q7793705 property:P27 ?o }
Canada
Canada is that person a civilian of
Canada
action filter_type
action find
entity Thomas Ryan
relation country of citizenship
type political territorial entity
['male', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:political_territorial_entity . resource:Thomas_Ryan property:country_of_citizenship ?o }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7793705
P102
Q7210356
USER
Which political organization is that person a member of ?
(Q16,P102,c(Q7210356))
action filter_type
action find
entity Q7793705
relation P102
type Q7210356
['Q16', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?w WHERE { resource:Q7793705 property:P102 ?w . ?w rdf:type ontology:Q7210356 }
Thomas Ryan
action filter_type
action find
entity Thomas Ryan
relation member of political party
type political organization
['Canada', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?w WHERE { resource:Thomas_Ryan property:member_of_political_party ?w . ?w rdf:type ontology:political_organization }
[]
political organization
Q909827
SYSTEM
Conservative Party of Canada
Q909827
(Q16,P102,c(Q7210356))
action filter_type
action find
entity Q7793705
relation P102
type Q7210356
Canada [ANSWER] is that person a member of
['Q16', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?w WHERE { resource:Q7793705 property:P102 ?w . ?w rdf:type ontology:Q7210356 }
Conservative Party of Canada
Canada Conservative Party of Canada is that person a member of
Conservative Party of Canada
action filter_type
action find
entity Thomas Ryan
relation member of political party
type political organization
['Canada', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?w WHERE { resource:Thomas_Ryan property:member_of_political_party ?w . ?w rdf:type ontology:political_organization }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7793705
P39
Q12737077
USER
What was the position for which Thomas Ryan was appointed ?
(Q7793705,P39,c(Q12737077))
action filter_type
action find
entity Q7793705
relation P39
type Q12737077
['Q7793705', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { resource:Q7793705 property:P39 ?c . ?c rdf:type ontology:Q12737077 }
Thomas Ryan
action filter_type
action find
entity Thomas Ryan
relation position held
type occupation
['Thomas Ryan', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { resource:Thomas_Ryan property:position_held ?c . ?c rdf:type ontology:occupation }
[]
occupation
Q18524027
SYSTEM
Member of the Senate of Canada
Q18524027
(Q7793705,P39,c(Q12737077))
action filter_type
action find
entity Q7793705
relation P39
type Q12737077
[ANSWER]
['Q7793705', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { resource:Q7793705 property:P39 ?c . ?c rdf:type ontology:Q12737077 }
Member of the Senate of Canada
Member of the Senate of Canada
Member of the Senate of Canada
action filter_type
action find
entity Thomas Ryan
relation position held
type occupation
['Thomas Ryan', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { resource:Thomas_Ryan property:position_held ?c . ?c rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7793705
P106
Q12737077
USER
What does that person do for a living ?
(Q18524027,P106,c(Q12737077))
action filter_type
action find
entity Q7793705
relation P106
type Q12737077
['Q18524027', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q12737077 . resource:Q7793705 property:P106 ?t }
Thomas Ryan
action filter_type
action find
entity Thomas Ryan
relation occupation
type occupation
['Member of the Senate of Canada', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:occupation . resource:Thomas_Ryan property:occupation ?t }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q18524027,P106,c(Q12737077))
action filter_type
action find
entity Q7793705
relation P106
type Q12737077
[ANSWER] that person does for a living
['Q18524027', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q12737077 . resource:Q7793705 property:P106 ?t }
politician
Politician that person does for a living
politician
action filter_type
action find
entity Thomas Ryan
relation occupation
type occupation
['Member of the Senate of Canada', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:occupation . resource:Thomas_Ryan property:occupation ?t }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7793705
P20
Q56061
USER
Where did that person die ?
(Q82955,P20,c(Q56061))
action filter_type
action find
entity Q7793705
relation P20
type Q56061
['Q82955', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?w WHERE { resource:Q7793705 property:P20 ?w . ?w rdf:type ontology:Q56061 }
Thomas Ryan
action filter_type
action find
entity Thomas Ryan
relation place of death
type administrative territorial entity
['politician', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Thomas_Ryan property:place_of_death ?w . ?w rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q340
SYSTEM
Montreal
Q340
(Q82955,P20,c(Q56061))
action filter_type
action find
entity Q7793705
relation P20
type Q56061
That person died in [ANSWER]
['Q82955', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?w WHERE { resource:Q7793705 property:P20 ?w . ?w rdf:type ontology:Q56061 }
Montreal
That person died in Montreal
Montreal
action filter_type
action find
entity Thomas Ryan
relation place of death
type administrative territorial entity
['politician', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Thomas_Ryan property:place_of_death ?w . ?w rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7793705
P19
Q56061
USER
Where was that person born ?
(Q340,P19,c(Q56061))
action filter_type
action find
entity Q7793705
relation P19
type Q56061
['Q340', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { resource:Q7793705 property:P19 ?z . ?z rdf:type ontology:Q56061 }
Thomas Ryan
action filter_type
action find
entity Thomas Ryan
relation place of birth
type administrative territorial entity
['Montreal', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Thomas_Ryan property:place_of_birth ?z . ?z rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q2668310
SYSTEM
Ballinakill
Q2668310
(Q340,P19,c(Q56061))
action filter_type
action find
entity Q7793705
relation P19
type Q56061
That person was born in [ANSWER]
['Q340', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { resource:Q7793705 property:P19 ?z . ?z rdf:type ontology:Q56061 }
Ballinakill
That person was born in Ballinakill
Ballinakill
action filter_type
action find
entity Thomas Ryan
relation place of birth
type administrative territorial entity
['Montreal', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Thomas_Ryan property:place_of_birth ?z . ?z rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q2668310 Q1552358
P19
Q502895
USER
Was Josef Schmitt born at that administrative territory ?
(Q1552358,P19,Q2668310)
action is_in
entity Q1552358
action find
entity Q2668310
relation P19
['Q1552358', 'P19', 'Q2668310']
ASK WHERE { resource:Q2668310 property:P19 resource:Q1552358 }
Ballinakill Josef Schmitt
action is_in
entity Josef Schmitt
action find
entity Ballinakill
relation place of birth
['Josef Schmitt', 'place of birth', 'Ballinakill']
ASK WHERE { resource:Ballinakill property:place_of_birth resource:Josef_Schmitt }
[]
common name
SYSTEM
NO
(Q1552358,P19,Q2668310)
action is_in
entity Q1552358
action find
entity Q2668310
relation P19
[ANSWER]
['Q1552358', 'P19', 'Q2668310']
ASK WHERE { resource:Q2668310 property:P19 resource:Q1552358 }
No
action is_in
entity Josef Schmitt
action find
entity Ballinakill
relation place of birth
['Josef Schmitt', 'place of birth', 'Ballinakill']
ASK WHERE { resource:Ballinakill property:place_of_birth resource:Josef_Schmitt }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q2322355 Q18524027
P17
Q1048835
USER
Which political territories are Member of the Senate of Canada or Mouloundou Department a part of ?
OR((Q18524027,P17,c(Q1048835)), (Q2322355,P17,c(Q1048835)))
action filter_type
action union
action find
entity Q18524027
relation P17
action find
entity Q2322355
relation P17
type Q1048835
{'OR': [['Q18524027', 'P17', {'concept': 'Q1048835'}], ['Q2322355', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Q2322355 property:P17 ?t } UNION { resource:Q18524027 property:P17 ?t } } . ?t rdf:type ontology:Q1048835 }
Mouloundou Department Member of the Senate of Canada
action filter_type
action union
action find
entity Member of the Senate of Canada
relation country
action find
entity Mouloundou Department
relation country
type political territorial entity
{'OR': [['Member of the Senate of Canada', 'country', {'concept': 'political territorial entity'}], ['Mouloundou Department', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Mouloundou_Department property:country ?t } UNION { resource:Member_of_the_Senate_of_Canada property:country ?t } } . ?t rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q16 Q1000
SYSTEM
Canada, Gabon
Q16 Q1000
OR((Q18524027,P17,c(Q1048835)), (Q2322355,P17,c(Q1048835)))
action filter_type
action union
action find
entity Q18524027
relation P17
action find
entity Q2322355
relation P17
type Q1048835
[ANSWERS] are Member of the Senate of Canada or Mouloundou Department a part of
{'OR': [['Q18524027', 'P17', {'concept': 'Q1048835'}], ['Q2322355', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Q2322355 property:P17 ?t } UNION { resource:Q18524027 property:P17 ?t } } . ?t rdf:type ontology:Q1048835 }
Canada Gabon
Canada and Gabon are Member of the Senate of Canada or Mouloundou Department a part of
Canada Gabon
action filter_type
action union
action find
entity Member of the Senate of Canada
relation country
action find
entity Mouloundou Department
relation country
type political territorial entity
{'OR': [['Member of the Senate of Canada', 'country', {'concept': 'political territorial entity'}], ['Mouloundou Department', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Mouloundou_Department property:country ?t } UNION { resource:Member_of_the_Senate_of_Canada property:country ?t } } . ?t rdf:type ontology:political_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q2249235
P530
Q1048835
USER
Are Codorniz known to have diplomatic connections with those ones ?
(Q2249235,P530,Q16) (Q2249235,P530,Q1000)
action is_in
entity prev_answer
action find
entity Q2249235
relation P530
['Q2249235', 'P530', 'Q16'] ['Q2249235', 'P530', 'Q1000']
ASK WHERE { resource:Q2249235 property:P530 ?t . VALUES ( ?t ) { ( resource:Q16 ) ( resource:Q1000 ) } }
Codorniz
action is_in
entity prev_answer
action find
entity Codorniz
relation diplomatic relation
['Codorniz', 'diplomatic relation', 'Canada'] ['Codorniz', 'diplomatic relation', 'Gabon']
ASK WHERE { resource:Codorniz property:diplomatic_relation ?t . VALUES ( ?t ) { ( resource:Canada ) ( resource:Gabon ) } }
[]
political territorial entity
SYSTEM
NO
(Q2249235,P530,Q16) (Q2249235,P530,Q1000)
action is_in
entity prev_answer
action find
entity Q2249235
relation P530
[ANSWER]
['Q2249235', 'P530', 'Q16'] ['Q2249235', 'P530', 'Q1000']
ASK WHERE { resource:Q2249235 property:P530 ?t . VALUES ( ?t ) { ( resource:Q16 ) ( resource:Q1000 ) } }
No
action is_in
entity prev_answer
action find
entity Codorniz
relation diplomatic relation
['Codorniz', 'diplomatic relation', 'Canada'] ['Codorniz', 'diplomatic relation', 'Gabon']
ASK WHERE { resource:Codorniz property:diplomatic_relation ?t . VALUES ( ?t ) { ( resource:Canada ) ( resource:Gabon ) } }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q909827 Q16
P17
Q1048835
USER
Does that political organization belong to Canada ?
(Q909827,P17,Q16)
action is_in
entity Q16
action find
entity Q909827
relation P17
['Q909827', 'P17', 'Q16']
ASK WHERE { resource:Q909827 property:P17 resource:Q16 }
Conservative Party of Canada Canada
action is_in
entity Canada
action find
entity Conservative Party of Canada
relation country
['Conservative Party of Canada', 'country', 'Canada']
ASK WHERE { resource:Conservative_Party_of_Canada property:country resource:Canada }
[]
political territorial entity
SYSTEM
YES
(Q909827,P17,Q16)
action is_in
entity Q16
action find
entity Q909827
relation P17
[ANSWER]
['Q909827', 'P17', 'Q16']
ASK WHERE { resource:Q909827 property:P17 resource:Q16 }
Yes
action is_in
entity Canada
action find
entity Conservative Party of Canada
relation country
['Conservative Party of Canada', 'country', 'Canada']
ASK WHERE { resource:Conservative_Party_of_Canada property:country resource:Canada }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q340 Q2129022
P47
Q1048835
USER
How many political territories share border with Montreal or Soroca District ?
(Q340,P47,c(Q1048835)) (Q2129022,P47,c(Q1048835))
action count
action union
action filter_type
action find
entity Q340
relation P47
type Q1048835
action filter_type
action find
entity Q2129022
relation P47
type Q1048835
['Q340', 'P47', {'concept': 'Q1048835'}] ['Q2129022', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?h ) WHERE { ?g property:P47 ?d . VALUES ( ?g ) { ( resource:Q340 ) ( resource:Q2129022 ) } }
Montreal Soroca District
action count
action union
action filter_type
action find
entity Montreal
relation shares border with
type political territorial entity
action filter_type
action find
entity Soroca District
relation shares border with
type political territorial entity
['Montreal', 'shares border with', {'concept': 'political territorial entity'}] ['Soroca District', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?h ) WHERE { ?g property:shares_border_with ?d . VALUES ( ?g ) { ( resource:Montreal ) ( resource:Soroca_District ) } }
[]
political territorial entity
SYSTEM
2
Q171852 Q166709
(Q340,P47,c(Q1048835)) (Q2129022,P47,c(Q1048835))
action count
action union
action filter_type
action find
entity Q340
relation P47
type Q1048835
action filter_type
action find
entity Q2129022
relation P47
type Q1048835
[ANSWER]
['Q340', 'P47', {'concept': 'Q1048835'}] ['Q2129022', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?h ) WHERE { ?g property:P47 ?d . VALUES ( ?g ) { ( resource:Q340 ) ( resource:Q2129022 ) } }
Odessa Oblast Vinnytsia Oblast
2
action count
action union
action filter_type
action find
entity Montreal
relation shares border with
type political territorial entity
action filter_type
action find
entity Soroca District
relation shares border with
type political territorial entity
['Montreal', 'shares border with', {'concept': 'political territorial entity'}] ['Soroca District', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?h ) WHERE { ?g property:shares_border_with ?d . VALUES ( ?g ) { ( resource:Montreal ) ( resource:Soroca_District ) } }
[]