Simple Question (Direct)
Simple Question
Q6681608
P21
Q290
USER
Which sex does Lorraine Dodd have ?
(Q6681608,P21,c(Q290))
action filter_type
action find
entity Q6681608
relation P21
type Q290
['Q6681608', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?h WHERE { resource:Q6681608 property:P21 ?h . ?h rdf:type ontology:Q290 }
Lorraine Dodd
action filter_type
action find
entity Lorraine Dodd
relation gender
type sex
['Lorraine Dodd', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?h WHERE { resource:Lorraine_Dodd property:gender ?h . ?h rdf:type ontology:sex }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q6681608,P21,c(Q290))
action filter_type
action find
entity Q6681608
relation P21
type Q290
Lorraine Dodd has a [ANSWER]
['Q6681608', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?h WHERE { resource:Q6681608 property:P21 ?h . ?h rdf:type ontology:Q290 }
female
Lorraine Dodd has a female
female
action filter_type
action find
entity Lorraine Dodd
relation gender
type sex
['Lorraine Dodd', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?h WHERE { resource:Lorraine_Dodd property:gender ?h . ?h rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6681608
P27
Q1048835
USER
Which political territory is the country of citizenship of Lorraine Dodd ?
(Q6681608,P27,c(Q1048835))
action filter_type
action find
entity Q6681608
relation P27
type Q1048835
['Q6681608', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q1048835 . resource:Q6681608 property:P27 ?t }
Lorraine Dodd
action filter_type
action find
entity Lorraine Dodd
relation country of citizenship
type political territorial entity
['Lorraine Dodd', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:political_territorial_entity . resource:Lorraine_Dodd property:country_of_citizenship ?t }
[]
political territorial entity
Q408
SYSTEM
Australia
Q408
(Q6681608,P27,c(Q1048835))
action filter_type
action find
entity Q6681608
relation P27
type Q1048835
[ANSWER] is the country of citizenship of Lorraine Dodd
['Q6681608', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q1048835 . resource:Q6681608 property:P27 ?t }
Australia
Australia is the country of citizenship of Lorraine Dodd
Australia
action filter_type
action find
entity Lorraine Dodd
relation country of citizenship
type political territorial entity
['Lorraine Dodd', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:political_territorial_entity . resource:Lorraine_Dodd property:country_of_citizenship ?t }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P551
Q95074 Q502895
USER
How many fictional characters or people reside at that political territory ?
(c(Q95074),P551,Q408) (c(Q502895),P551,Q408) (c(Q95074),P551,Q408) (c(Q502895),P551,Q408)
action count
action union
action filter_type
action find_reverse
entity Q408
relation P551
type Q95074
action filter_type
action find_reverse
entity Q408
relation P551
type Q502895
[{'concept': 'Q95074'}, 'P551', 'Q408'] [{'concept': 'Q502895'}, 'P551', 'Q408'] [{'concept': 'Q95074'}, 'P551', 'Q408'] [{'concept': 'Q502895'}, 'P551', 'Q408']
SELECT DISTINCT ( COUNT ( ?r ) AS ?u ) WHERE { { ?r property:P551 resource:Q408 . ?r rdf:type ontology:Q502895 } UNION { ?r property:P551 resource:Q408 . ?r rdf:type ontology:Q95074 } }
action count
action union
action filter_type
action find_reverse
entity Australia
relation residence
type fictional character
action filter_type
action find_reverse
entity Australia
relation residence
type common name
[{'concept': 'fictional character'}, 'residence', 'Australia'] [{'concept': 'common name'}, 'residence', 'Australia'] [{'concept': 'fictional character'}, 'residence', 'Australia'] [{'concept': 'common name'}, 'residence', 'Australia']
SELECT DISTINCT ( COUNT ( ?r ) AS ?u ) WHERE { { ?r property:residence resource:Australia . ?r rdf:type ontology:common_name } UNION { ?r property:residence resource:Australia . ?r rdf:type ontology:fictional_character } }
[]
fictional character common name
SYSTEM
21
Q16888109 Q320 Q19847329 Q5247918 Q27561644 Q24091297 Q712208 Q27556028 Q289404 Q3018035 Q27564450 Q3372417 Q6214887 Q5044558 Q27564306 Q530413 Q19921825 Q24284499 Q26922710 Q7346196 Q17285130
(c(Q95074),P551,Q408) (c(Q502895),P551,Q408) (c(Q95074),P551,Q408) (c(Q502895),P551,Q408)
action count
action union
action filter_type
action find_reverse
entity Q408
relation P551
type Q95074
action filter_type
action find_reverse
entity Q408
relation P551
type Q502895
[ANSWER]
[{'concept': 'Q95074'}, 'P551', 'Q408'] [{'concept': 'Q502895'}, 'P551', 'Q408'] [{'concept': 'Q95074'}, 'P551', 'Q408'] [{'concept': 'Q502895'}, 'P551', 'Q408']
SELECT DISTINCT ( COUNT ( ?r ) AS ?u ) WHERE { { ?r property:P551 resource:Q408 . ?r rdf:type ontology:Q502895 } UNION { ?r property:P551 resource:Q408 . ?r rdf:type ontology:Q95074 } }
Hagen Stehr Michelle Bachelet Leo van de Pas Debbie Freeman Frank Ian Watkin Ashley Cooper Marahute Chris O'Neil David Hall Red Paul Wenz Johan Anderson Carol Shelton Krebbs Palmy Ian Fettes Faye Schenk Aline Gohard-Radenkovic Robert Jovicic Giles Matthey
21
action count
action union
action filter_type
action find_reverse
entity Australia
relation residence
type fictional character
action filter_type
action find_reverse
entity Australia
relation residence
type common name
[{'concept': 'fictional character'}, 'residence', 'Australia'] [{'concept': 'common name'}, 'residence', 'Australia'] [{'concept': 'fictional character'}, 'residence', 'Australia'] [{'concept': 'common name'}, 'residence', 'Australia']
SELECT DISTINCT ( COUNT ( ?r ) AS ?u ) WHERE { { ?r property:residence resource:Australia . ?r rdf:type ontology:common_name } UNION { ?r property:residence resource:Australia . ?r rdf:type ontology:fictional_character } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6681608
P641
Q349
USER
What did Lorraine Dodd participate in ?
(Q6681608,P641,c(Q349))
action filter_type
action find
entity Q6681608
relation P641
type Q349
['Q6681608', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q349 . resource:Q6681608 property:P641 ?m }
Lorraine Dodd
action filter_type
action find
entity Lorraine Dodd
relation sport
type sport
['Lorraine Dodd', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:sport . resource:Lorraine_Dodd property:sport ?m }
[]
sport
Q3930
SYSTEM
table tennis
Q3930
(Q6681608,P641,c(Q349))
action filter_type
action find
entity Q6681608
relation P641
type Q349
Lorraine Dodd participated in [ANSWER]
['Q6681608', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q349 . resource:Q6681608 property:P641 ?m }
table tennis
Lorraine Dodd participated in table tennis
table tennis
action filter_type
action find
entity Lorraine Dodd
relation sport
type sport
['Lorraine Dodd', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:sport . resource:Lorraine_Dodd property:sport ?m }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q3119740
Q349
USER
And how about Guillaume Chassard?
(Q3119740,P641,c(Q349))
action filter_type
action find
entity Q3119740
relation P641
type Q349
['Q3119740', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?q WHERE { resource:Q3119740 property:P641 ?q . ?q rdf:type ontology:Q349 }
Guillaume Chassard
action filter_type
action find
entity Guillaume Chassard
relation sport
type sport
['Guillaume Chassard', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?q WHERE { resource:Guillaume_Chassard property:sport ?q . ?q rdf:type ontology:sport }
[]
sport
Q41466
SYSTEM
ice hockey
Q41466
(Q3119740,P641,c(Q349))
action filter_type
action find
entity Q3119740
relation P641
type Q349
[ANSWER]
['Q3119740', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?q WHERE { resource:Q3119740 property:P641 ?q . ?q rdf:type ontology:Q349 }
ice hockey
ice hockey
action filter_type
action find
entity Guillaume Chassard
relation sport
type sport
['Guillaume Chassard', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?q WHERE { resource:Guillaume_Chassard property:sport ?q . ?q rdf:type ontology:sport }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q41466 Q674898
P641
Q502895
USER
Does Reijo Ruotsalainen play that sport ?
(Q674898,P641,Q41466)
action is_in
entity Q41466
action find
entity Q674898
relation P641
['Q674898', 'P641', 'Q41466']
ASK WHERE { resource:Q674898 property:P641 resource:Q41466 }
ice hockey Reijo Ruotsalainen
action is_in
entity ice hockey
action find
entity Reijo Ruotsalainen
relation sport
['Reijo Ruotsalainen', 'sport', 'ice hockey']
ASK WHERE { resource:Reijo_Ruotsalainen property:sport resource:ice_hockey }
[]
common name
SYSTEM
YES
(Q674898,P641,Q41466)
action is_in
entity Q41466
action find
entity Q674898
relation P641
[ANSWER]
['Q674898', 'P641', 'Q41466']
ASK WHERE { resource:Q674898 property:P641 resource:Q41466 }
Yes
action is_in
entity ice hockey
action find
entity Reijo Ruotsalainen
relation sport
['Reijo Ruotsalainen', 'sport', 'ice hockey']
ASK WHERE { resource:Reijo_Ruotsalainen property:sport resource:ice_hockey }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q6681608
P106
Q151885
USER
How many concepts do Lorraine Dodd do for a living ?
(Q6681608,P106,c(Q151885))
action count
action filter_type
action find
entity Q6681608
relation P106
type Q151885
['Q6681608', 'P106', {'concept': 'Q151885'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?v ) WHERE { resource:Q6681608 property:P106 ?b . ?b rdf:type ontology:Q151885 }
Lorraine Dodd
action count
action filter_type
action find
entity Lorraine Dodd
relation occupation
type concept
['Lorraine Dodd', 'occupation', {'concept': 'concept'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?v ) WHERE { resource:Lorraine_Dodd property:occupation ?b . ?b rdf:type ontology:concept }
[]
concept
SYSTEM
2
Q10843402 Q11513337
(Q6681608,P106,c(Q151885))
action count
action filter_type
action find
entity Q6681608
relation P106
type Q151885
[ANSWER]
['Q6681608', 'P106', {'concept': 'Q151885'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?v ) WHERE { resource:Q6681608 property:P106 ?b . ?b rdf:type ontology:Q151885 }
swimmer athletics competitor
2
action count
action filter_type
action find
entity Lorraine Dodd
relation occupation
type concept
['Lorraine Dodd', 'occupation', {'concept': 'concept'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?v ) WHERE { resource:Lorraine_Dodd property:occupation ?b . ?b rdf:type ontology:concept }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q4723094
Q151885
USER
And what about Alfred Lyall?
(Q4723094,P106,c(Q151885))
action count
action filter_type
action find
entity Q4723094
relation P106
type Q151885
['Q4723094', 'P106', {'concept': 'Q151885'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?x ) WHERE { ?d rdf:type ontology:Q151885 . resource:Q4723094 property:P106 ?d }
Alfred Lyall
action count
action filter_type
action find
entity Alfred Lyall
relation occupation
type concept
['Alfred Lyall', 'occupation', {'concept': 'concept'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?x ) WHERE { ?d rdf:type ontology:concept . resource:Alfred_Lyall property:occupation ?d }
[]
concept
SYSTEM
1
(Q4723094,P106,c(Q151885))
action count
action filter_type
action find
entity Q4723094
relation P106
type Q151885
[ANSWER]
['Q4723094', 'P106', {'concept': 'Q151885'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?x ) WHERE { ?d rdf:type ontology:Q151885 . resource:Q4723094 property:P106 ?d }
1
action count
action filter_type
action find
entity Alfred Lyall
relation occupation
type concept
['Alfred Lyall', 'occupation', {'concept': 'concept'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?x ) WHERE { ?d rdf:type ontology:concept . resource:Alfred_Lyall property:occupation ?d }
[]