Simple Question (Direct)
Simple Question
Q655767
P106
Q12737077
USER
Which occupation has Marcus Ahlm as his/her 's career ?
(Q655767,P106,c(Q12737077))
action filter_type
action find
entity Q655767
relation P106
type Q12737077
['Q655767', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { resource:Q655767 property:P106 ?b . ?b rdf:type ontology:Q12737077 }
Marcus Ahlm
action filter_type
action find
entity Marcus Ahlm
relation occupation
type occupation
['Marcus Ahlm', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { resource:Marcus_Ahlm property:occupation ?b . ?b rdf:type ontology:occupation }
[]
occupation
Q13365117
SYSTEM
handball player
Q13365117
(Q655767,P106,c(Q12737077))
action filter_type
action find
entity Q655767
relation P106
type Q12737077
Player [ANSWER] has Marcus Ahlm as his/her 's career
['Q655767', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { resource:Q655767 property:P106 ?b . ?b rdf:type ontology:Q12737077 }
handball player
Player handball player has Marcus Ahlm as his/her 's career
handball player
action filter_type
action find
entity Marcus Ahlm
relation occupation
type occupation
['Marcus Ahlm', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { resource:Marcus_Ahlm property:occupation ?b . ?b rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q655767
P19
Q15700808
USER
Where was Marcus Ahlm born ?
(Q655767,P19,c(Q15700808))
action filter_type
action find
entity Q655767
relation P19
type Q15700808
['Q655767', 'P19', {'concept': 'Q15700808'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q15700808 . resource:Q655767 property:P19 ?x }
Marcus Ahlm
action filter_type
action find
entity Marcus Ahlm
relation place of birth
type urban unit definition
['Marcus Ahlm', 'place of birth', {'concept': 'urban unit definition'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:urban_unit_definition . resource:Marcus_Ahlm property:place_of_birth ?x }
[]
urban unit definition
Q2614023
SYSTEM
Norra Åsum
Q2614023
(Q655767,P19,c(Q15700808))
action filter_type
action find
entity Q655767
relation P19
type Q15700808
Marcus Ahlm was born in [ANSWER]
['Q655767', 'P19', {'concept': 'Q15700808'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q15700808 . resource:Q655767 property:P19 ?x }
Norra Åsum
Marcus Ahlm was born in Norra Åsum
Norra Åsum
action filter_type
action find
entity Marcus Ahlm
relation place of birth
type urban unit definition
['Marcus Ahlm', 'place of birth', {'concept': 'urban unit definition'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:urban_unit_definition . resource:Marcus_Ahlm property:place_of_birth ?x }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2614023
P17
Q15617994
USER
Which administrative territory does that urban unit definition belong to ?
(Q2614023,P17,c(Q15617994))
action filter_type
action find
entity Q2614023
relation P17
type Q15617994
['Q2614023', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { resource:Q2614023 property:P17 ?e . ?e rdf:type ontology:Q15617994 }
Norra Åsum
action filter_type
action find
entity Norra Åsum
relation country
type designation for an administrative territorial entity
['Norra Åsum', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Norra_Åsum property:country ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q34
SYSTEM
Sweden
Q34
(Q2614023,P17,c(Q15617994))
action filter_type
action find
entity Q2614023
relation P17
type Q15617994
That urban unit definition belongs to [ANSWER]
['Q2614023', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { resource:Q2614023 property:P17 ?e . ?e rdf:type ontology:Q15617994 }
Sweden
That urban unit definition belongs to Sweden
Sweden
action filter_type
action find
entity Norra Åsum
relation country
type designation for an administrative territorial entity
['Norra Åsum', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Norra_Åsum property:country ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q34
P937
Q502895
USER
Who are an people who works at that administrative territory ?
(c(Q502895),P937,Q34)
action filter_type
action find_reverse
entity Q34
relation P937
type Q502895
[{'concept': 'Q502895'}, 'P937', 'Q34']
SELECT DISTINCT ?r WHERE { ?r property:P937 resource:Q34 . ?r rdf:type ontology:Q502895 }
Sweden
action filter_type
action find_reverse
entity Sweden
relation work location
type common name
[{'concept': 'common name'}, 'work location', 'Sweden']
SELECT DISTINCT ?r WHERE { ?r property:work_location resource:Sweden . ?r rdf:type ontology:common_name }
[]
common name
Q39658 Q3218964
SYSTEM
Carl Peter Thunberg, Laurens de Geer
Q39658 Q3218964
(c(Q502895),P937,Q34)
action filter_type
action find_reverse
entity Q34
relation P937
type Q502895
An people works at that administrative territory are of [ANSWERS]
[{'concept': 'Q502895'}, 'P937', 'Q34']
SELECT DISTINCT ?r WHERE { ?r property:P937 resource:Q34 . ?r rdf:type ontology:Q502895 }
Carl Peter Thunberg Laurens de Geer
An people works at that administrative territory are of Carl Peter Thunberg and Laurens de Geer
Carl Peter Thunberg Laurens de Geer
action filter_type
action find_reverse
entity Sweden
relation work location
type common name
[{'concept': 'common name'}, 'work location', 'Sweden']
SELECT DISTINCT ?r WHERE { ?r property:work_location resource:Sweden . ?r rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q39658
P21
Q290
USER
What is the sex of that person ?
(Q39658,P21,c(Q290))
action filter_type
action find
entity Q39658
relation P21
type Q290
['Q39658', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?i WHERE { resource:Q39658 property:P21 ?i . ?i rdf:type ontology:Q290 }
Carl Peter Thunberg
action filter_type
action find
entity Carl Peter Thunberg
relation gender
type sex
['Carl Peter Thunberg', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?i WHERE { resource:Carl_Peter_Thunberg property:gender ?i . ?i rdf:type ontology:sex }
[]
sex
Clarification for simple ques.
Q3218964
SYSTEM
Did you mean Laurens de Geer ?
Q39658 Q3218964
(Q39658,P21,c(Q290)) (Q3218964,P21,c(Q290))
[ANSWER]
['Q39658', 'P21', {'concept': 'Q290'}] ['Q3218964', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?i WHERE { resource:Q39658 property:P21 ?i . ?i rdf:type ontology:Q290 }
Carl Peter Thunberg Laurens de Geer
Did you mean Laurens de Geer ?
Laurens de Geer
['Carl Peter Thunberg', 'gender', {'concept': 'sex'}] ['Laurens de Geer', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?i WHERE { resource:Carl_Peter_Thunberg property:gender ?i . ?i rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
USER
No, I meant Carl Peter Thunberg. Could you tell me the answer for that?
(Q39658,P21,c(Q290))
Q39658
['Q39658', 'P21', {'concept': 'Q290'}]
['Carl Peter Thunberg', 'gender', {'concept': 'sex'}]
[]
Q6581097
SYSTEM
male
Q6581097
(Q39658,P21,c(Q290))
action filter_type
action find
entity Q39658
relation P21
type Q290
The sex of that person is a [ANSWER]
['Q39658', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?i WHERE { resource:Q39658 property:P21 ?i . ?i rdf:type ontology:Q290 }
male
The sex of that person is a male
male
action filter_type
action find
entity Carl Peter Thunberg
relation gender
type sex
['Carl Peter Thunberg', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?i WHERE { resource:Carl_Peter_Thunberg property:gender ?i . ?i rdf:type ontology:sex }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q6581097 Q5279189
P21
Q502895
USER
Does Diogo Carvalho have the gender as that sex ?
(Q5279189,P21,Q6581097)
action is_in
entity Q6581097
action find
entity Q5279189
relation P21
['Q5279189', 'P21', 'Q6581097']
ASK WHERE { resource:Q5279189 property:P21 resource:Q6581097 }
male Diogo Carvalho
action is_in
entity male
action find
entity Diogo Carvalho
relation gender
['Diogo Carvalho', 'gender', 'male']
ASK WHERE { resource:Diogo_Carvalho property:gender resource:male }
[]
common name
SYSTEM
YES
(Q5279189,P21,Q6581097)
action is_in
entity Q6581097
action find
entity Q5279189
relation P21
[ANSWER]
['Q5279189', 'P21', 'Q6581097']
ASK WHERE { resource:Q5279189 property:P21 resource:Q6581097 }
Yes
action is_in
entity male
action find
entity Diogo Carvalho
relation gender
['Diogo Carvalho', 'gender', 'male']
ASK WHERE { resource:Diogo_Carvalho property:gender resource:male }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q3218964 Q7025432
P22
Q502895
USER
Was Nicholas Garland the father of Laurens de Geer ?
(Q3218964,P22,Q7025432)
action is_in
entity Q7025432
action find
entity Q3218964
relation P22
['Q3218964', 'P22', 'Q7025432']
ASK WHERE { resource:Q3218964 property:P22 resource:Q7025432 }
Laurens de Geer Nicholas Garland
action is_in
entity Nicholas Garland
action find
entity Laurens de Geer
relation father
['Laurens de Geer', 'father', 'Nicholas Garland']
ASK WHERE { resource:Laurens_de_Geer property:father resource:Nicholas_Garland }
[]
common name
SYSTEM
NO
(Q3218964,P22,Q7025432)
action is_in
entity Q7025432
action find
entity Q3218964
relation P22
[ANSWER]
['Q3218964', 'P22', 'Q7025432']
ASK WHERE { resource:Q3218964 property:P22 resource:Q7025432 }
No
action is_in
entity Nicholas Garland
action find
entity Laurens de Geer
relation father
['Laurens de Geer', 'father', 'Nicholas Garland']
ASK WHERE { resource:Laurens_de_Geer property:father resource:Nicholas_Garland }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P921
Q12737077 Q386724 Q732577
USER
How many occupations were discussed in atleast 1 works or publications ?
(c(Q386724)|c(Q732577),P921,c(Q12737077))
action count
action atleast
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q732577
value 1
[[{'concept': 'Q386724'}, {'concept': 'Q732577'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?y ) ?r WHERE { { ?t property:P921 ?r . ?r rdf:type ontology:Q12737077 . ?t rdf:type ontology:Q386724 } UNION { ?t property:P921 ?r . ?t rdf:type ontology:Q732577 . ?r rdf:type ontology:Q12737077 } } GROUP BY ?r } . FILTER ( ?y >= 1 ) }
action count
action atleast
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type work
action find_reverse_tuple_counts
relation main subject
type occupation
type publication
value 1
[[{'concept': 'work'}, {'concept': 'publication'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?y ) ?r WHERE { { ?t property:main_subject ?r . ?r rdf:type ontology:occupation . ?t rdf:type ontology:work } UNION { ?t property:main_subject ?r . ?t rdf:type ontology:publication . ?r rdf:type ontology:occupation } } GROUP BY ?r } . FILTER ( ?y >= 1 ) }
[]
occupation work publication
SYSTEM
6
Q3809586 Q2094335 Q9402 Q16746569 Q15320003 Q16003532
(c(Q386724)|c(Q732577),P921,c(Q12737077))
action count
action atleast
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q732577
value 1
[ANSWER]
[[{'concept': 'Q386724'}, {'concept': 'Q732577'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?y ) ?r WHERE { { ?t property:P921 ?r . ?r rdf:type ontology:Q12737077 . ?t rdf:type ontology:Q386724 } UNION { ?t property:P921 ?r . ?t rdf:type ontology:Q732577 . ?r rdf:type ontology:Q12737077 } } GROUP BY ?r } . FILTER ( ?y >= 1 ) }
Wikipedian in Residence United States Attorney ninja high school student migrant worker middle school student
6
action count
action atleast
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type work
action find_reverse_tuple_counts
relation main subject
type occupation
type publication
value 1
[[{'concept': 'work'}, {'concept': 'publication'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?y ) ?r WHERE { { ?t property:main_subject ?r . ?r rdf:type ontology:occupation . ?t rdf:type ontology:work } UNION { ?t property:main_subject ?r . ?t rdf:type ontology:publication . ?r rdf:type ontology:occupation } } GROUP BY ?r } . FILTER ( ?y >= 1 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q34 Q23427
P530
Q1048835
USER
How many political territories have diplomatic relations with Sweden or South Ossetia ?
(c(Q1048835),P530,Q34) (c(Q1048835),P530,Q23427)
action count
action union
action filter_type
action find_reverse
entity Q34
relation P530
type Q1048835
action filter_type
action find_reverse
entity Q23427
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', 'Q34'] [{'concept': 'Q1048835'}, 'P530', 'Q23427']
SELECT DISTINCT ( COUNT ( ?f ) AS ?n ) WHERE { { ?f property:P530 resource:Q23427 . ?f rdf:type ontology:Q1048835 } UNION { ?f property:P530 resource:Q34 . ?f rdf:type ontology:Q1048835 } }
Sweden South Ossetia
action count
action union
action filter_type
action find_reverse
entity Sweden
relation diplomatic relation
type political territorial entity
action filter_type
action find_reverse
entity South Ossetia
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Sweden'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'South Ossetia']
SELECT DISTINCT ( COUNT ( ?f ) AS ?n ) WHERE { { ?f property:diplomatic_relation resource:South_Ossetia . ?f rdf:type ontology:political_territorial_entity } UNION { ?f property:diplomatic_relation resource:Sweden . ?f rdf:type ontology:political_territorial_entity } }
[]
political territorial entity
SYSTEM
3
Q16 Q408 Q183
(c(Q1048835),P530,Q34) (c(Q1048835),P530,Q23427)
action count
action union
action filter_type
action find_reverse
entity Q34
relation P530
type Q1048835
action filter_type
action find_reverse
entity Q23427
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', 'Q34'] [{'concept': 'Q1048835'}, 'P530', 'Q23427']
SELECT DISTINCT ( COUNT ( ?f ) AS ?n ) WHERE { { ?f property:P530 resource:Q23427 . ?f rdf:type ontology:Q1048835 } UNION { ?f property:P530 resource:Q34 . ?f rdf:type ontology:Q1048835 } }
Canada Australia Germany
3
action count
action union
action filter_type
action find_reverse
entity Sweden
relation diplomatic relation
type political territorial entity
action filter_type
action find_reverse
entity South Ossetia
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Sweden'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'South Ossetia']
SELECT DISTINCT ( COUNT ( ?f ) AS ?n ) WHERE { { ?f property:diplomatic_relation resource:South_Ossetia . ?f rdf:type ontology:political_territorial_entity } UNION { ?f property:diplomatic_relation resource:Sweden . ?f rdf:type ontology:political_territorial_entity } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q34
P1346
Q1190554
USER
Which events were won by Sweden ?
(c(Q1190554),P1346,Q34)
action filter_type
action find_reverse
entity Q34
relation P1346
type Q1190554
[{'concept': 'Q1190554'}, 'P1346', 'Q34']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q1190554 . ?m property:P1346 resource:Q34 }
Sweden
action filter_type
action find_reverse
entity Sweden
relation winner
type event
[{'concept': 'event'}, 'winner', 'Sweden']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:event . ?m property:winner resource:Sweden }
[]
event
Q3500708 Q705409
SYSTEM
Battle of Stäket, Battle of Helsingborg
Q3500708 Q705409
(c(Q1190554),P1346,Q34)
action filter_type
action find_reverse
entity Q34
relation P1346
type Q1190554
[ANSWERS] were won by Sweden
[{'concept': 'Q1190554'}, 'P1346', 'Q34']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q1190554 . ?m property:P1346 resource:Q34 }
Battle of Stäket Battle of Helsingborg
Battle of Stäket and Battle of Helsingborg were won by Sweden
Battle of Stäket Battle of Helsingborg
action filter_type
action find_reverse
entity Sweden
relation winner
type event
[{'concept': 'event'}, 'winner', 'Sweden']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:event . ?m property:winner resource:Sweden }
[]
Clarification
Simple Question|Single Entity|Indirect
Q3500708
P710
Q3024240
USER
Which artist participated in that event ?
(Q3500708,P710,c(Q3024240))
action filter_type
action find
entity Q3500708
relation P710
type Q3024240
['Q3500708', 'P710', {'concept': 'Q3024240'}]
SELECT DISTINCT ?q WHERE { resource:Q3500708 property:P710 ?q . ?q rdf:type ontology:Q3024240 }
Battle of Stäket
action filter_type
action find
entity Battle of Stäket
relation participant
type former country
['Battle of Stäket', 'participant', {'concept': 'former country'}]
SELECT DISTINCT ?q WHERE { resource:Battle_of_Stäket property:participant ?q . ?q rdf:type ontology:former_country }
[]
former country
Clarification for simple ques.
Q3500708
SYSTEM
Did you mean Battle of Stäket ?
Q3500708 Q705409
(Q3500708,P710,c(Q3024240)) (Q705409,P710,c(Q3024240))
[ANSWER]
['Q3500708', 'P710', {'concept': 'Q3024240'}] ['Q705409', 'P710', {'concept': 'Q3024240'}]
SELECT DISTINCT ?q WHERE { resource:Q3500708 property:P710 ?q . ?q rdf:type ontology:Q3024240 }
Battle of Stäket Battle of Helsingborg
Did you mean Battle of Stäket ?
Battle of Stäket
['Battle of Stäket', 'participant', {'concept': 'former country'}] ['Battle of Helsingborg', 'participant', {'concept': 'former country'}]
SELECT DISTINCT ?q WHERE { resource:Battle_of_Stäket property:participant ?q . ?q rdf:type ontology:former_country }
[]
Simple Question (Coreferenced)
USER
Yes
(Q3500708,P710,c(Q3024240))
['Q3500708', 'P710', {'concept': 'Q3024240'}]
['Battle of Stäket', 'participant', {'concept': 'former country'}]
[]
Q34266
SYSTEM
Russian Empire
Q34266
(Q3500708,P710,c(Q3024240))
action filter_type
action find
entity Q3500708
relation P710
type Q3024240
[ANSWER] participated in that event
['Q3500708', 'P710', {'concept': 'Q3024240'}]
SELECT DISTINCT ?q WHERE { resource:Q3500708 property:P710 ?q . ?q rdf:type ontology:Q3024240 }
Russian Empire
Russian Empire participated in that event
Russian Empire
action filter_type
action find
entity Battle of Stäket
relation participant
type former country
['Battle of Stäket', 'participant', {'concept': 'former country'}]
SELECT DISTINCT ?q WHERE { resource:Battle_of_Stäket property:participant ?q . ?q rdf:type ontology:former_country }
[]