Simple Question (Direct)
Simple Question
Q18022182
P641
Q349
USER
What did Kirsten Nesse participate in ?
(Q18022182,P641,c(Q349))
action filter_type
action find
entity Q18022182
relation P641
type Q349
['Q18022182', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?t WHERE { resource:Q18022182 property:P641 ?t . ?t rdf:type ontology:Q349 }
Kirsten Nesse
action filter_type
action find
entity Kirsten Nesse
relation sport
type sport
['Kirsten Nesse', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?t WHERE { resource:Kirsten_Nesse property:sport ?t . ?t rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q18022182,P641,c(Q349))
action filter_type
action find
entity Q18022182
relation P641
type Q349
Kirsten Nesse participated in [ANSWER]
['Q18022182', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?t WHERE { resource:Q18022182 property:P641 ?t . ?t rdf:type ontology:Q349 }
association football
Kirsten Nesse participated in association football
association football
action filter_type
action find
entity Kirsten Nesse
relation sport
type sport
['Kirsten Nesse', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?t WHERE { resource:Kirsten_Nesse property:sport ?t . ?t rdf:type ontology:sport }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q18022182
P106
Q12737077
USER
What does Kirsten Nesse do for a living ?
(Q18022182,P106,c(Q12737077))
action filter_type
action find
entity Q18022182
relation P106
type Q12737077
['Q18022182', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { resource:Q18022182 property:P106 ?h . ?h rdf:type ontology:Q12737077 }
Kirsten Nesse
action filter_type
action find
entity Kirsten Nesse
relation occupation
type occupation
['Kirsten Nesse', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { resource:Kirsten_Nesse property:occupation ?h . ?h rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q18022182,P106,c(Q12737077))
action filter_type
action find
entity Q18022182
relation P106
type Q12737077
Kirsten Nesse does for a living as [ANSWER]
['Q18022182', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { resource:Q18022182 property:P106 ?h . ?h rdf:type ontology:Q12737077 }
association football player
Kirsten Nesse does for a living as association football player
association football player
action filter_type
action find
entity Kirsten Nesse
relation occupation
type occupation
['Kirsten Nesse', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { resource:Kirsten_Nesse property:occupation ?h . ?h rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q937857 Q11576125
P106
Q502895
USER
Does Chikara Tashiro have the profession as that occupation ?
(Q11576125,P106,Q937857)
action is_in
entity Q937857
action find
entity Q11576125
relation P106
['Q11576125', 'P106', 'Q937857']
ASK WHERE { resource:Q11576125 property:P106 resource:Q937857 }
association football player Chikara Tashiro
action is_in
entity association football player
action find
entity Chikara Tashiro
relation occupation
['Chikara Tashiro', 'occupation', 'association football player']
ASK WHERE { resource:Chikara_Tashiro property:occupation resource:association_football_player }
[]
common name
SYSTEM
YES
(Q11576125,P106,Q937857)
action is_in
entity Q937857
action find
entity Q11576125
relation P106
[ANSWER]
['Q11576125', 'P106', 'Q937857']
ASK WHERE { resource:Q11576125 property:P106 resource:Q937857 }
Yes
action is_in
entity association football player
action find
entity Chikara Tashiro
relation occupation
['Chikara Tashiro', 'occupation', 'association football player']
ASK WHERE { resource:Chikara_Tashiro property:occupation resource:association_football_player }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q18022182 Q14817 Q51372
P19
Q15617994
USER
Was Kirsten Nesse born at Lemgo and Montesilvano ?
(Q18022182,P19,Q14817) (Q18022182,P19,Q51372)
action is_in
entity Q18022182
action intersection
action find_reverse
entity Q14817
relation P19
action find_reverse
entity Q51372
relation P19
['Q18022182', 'P19', 'Q14817'] ['Q18022182', 'P19', 'Q51372']
ASK WHERE { resource:Q18022182 property:P19 resource:Q14817 . resource:Q18022182 property:P19 resource:Q51372 }
Kirsten Nesse Lemgo Montesilvano
action is_in
entity Kirsten Nesse
action intersection
action find_reverse
entity Lemgo
relation place of birth
action find_reverse
entity Montesilvano
relation place of birth
['Kirsten Nesse', 'place of birth', 'Lemgo'] ['Kirsten Nesse', 'place of birth', 'Montesilvano']
ASK WHERE { resource:Kirsten_Nesse property:place_of_birth resource:Lemgo . resource:Kirsten_Nesse property:place_of_birth resource:Montesilvano }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q18022182,P19,Q14817) (Q18022182,P19,Q51372)
action is_in
entity Q18022182
action intersection
action find_reverse
entity Q14817
relation P19
action find_reverse
entity Q51372
relation P19
[ANSWER]
['Q18022182', 'P19', 'Q14817'] ['Q18022182', 'P19', 'Q51372']
ASK WHERE { resource:Q18022182 property:P19 resource:Q14817 . resource:Q18022182 property:P19 resource:Q51372 }
YES and NO respectively
action is_in
entity Kirsten Nesse
action intersection
action find_reverse
entity Lemgo
relation place of birth
action find_reverse
entity Montesilvano
relation place of birth
['Kirsten Nesse', 'place of birth', 'Lemgo'] ['Kirsten Nesse', 'place of birth', 'Montesilvano']
ASK WHERE { resource:Kirsten_Nesse property:place_of_birth resource:Lemgo . resource:Kirsten_Nesse property:place_of_birth resource:Montesilvano }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q18022182
P21
Q290
USER
Which sex does that person have ?
action filter_type
action find
entity Q18022182
relation P21
type Q290
SELECT DISTINCT ?t WHERE { resource:Q18022182 property:P21 ?t . ?t rdf:type ontology:Q290 }
Kirsten Nesse
action filter_type
action find
entity Kirsten Nesse
relation gender
type sex
SELECT DISTINCT ?t WHERE { resource:Kirsten_Nesse property:gender ?t . ?t rdf:type ontology:sex }
[]
sex
Q6581072
SYSTEM
female
Q6581072
action filter_type
action find
entity Q18022182
relation P21
type Q290
That person has a [ANSWER]
SELECT DISTINCT ?t WHERE { resource:Q18022182 property:P21 ?t . ?t rdf:type ontology:Q290 }
female
That person has a female
female
action filter_type
action find
entity Kirsten Nesse
relation gender
type sex
SELECT DISTINCT ?t WHERE { resource:Kirsten_Nesse property:gender ?t . ?t rdf:type ontology:sex }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q16272876 Q18022182
P21
Q290
USER
Or Ilmari Ahonen?
OR((Q18022182,P21,c(Q290)), (Q16272876,P21,c(Q290)))
action filter_type
action union
action find
entity Q18022182
relation P21
action find
entity Q16272876
relation P21
type Q290
{'OR': [['Q18022182', 'P21', {'concept': 'Q290'}], ['Q16272876', 'P21', {'concept': 'Q290'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Q18022182 property:P21 ?p } UNION { resource:Q16272876 property:P21 ?p } } . ?p rdf:type ontology:Q290 }
Ilmari Ahonen Kirsten Nesse
action filter_type
action union
action find
entity Kirsten Nesse
relation gender
action find
entity Ilmari Ahonen
relation gender
type sex
{'OR': [['Kirsten Nesse', 'gender', {'concept': 'sex'}], ['Ilmari Ahonen', 'gender', {'concept': 'sex'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Kirsten_Nesse property:gender ?p } UNION { resource:Ilmari_Ahonen property:gender ?p } } . ?p rdf:type ontology:sex }
[]
sex
Q6581097 Q6581072
SYSTEM
male, female
Q6581097 Q6581072
OR((Q18022182,P21,c(Q290)), (Q16272876,P21,c(Q290)))
action filter_type
action union
action find
entity Q18022182
relation P21
action find
entity Q16272876
relation P21
type Q290
[ANSWERS]
{'OR': [['Q18022182', 'P21', {'concept': 'Q290'}], ['Q16272876', 'P21', {'concept': 'Q290'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Q18022182 property:P21 ?p } UNION { resource:Q16272876 property:P21 ?p } } . ?p rdf:type ontology:Q290 }
male female
male female
action filter_type
action union
action find
entity Kirsten Nesse
relation gender
action find
entity Ilmari Ahonen
relation gender
type sex
{'OR': [['Kirsten Nesse', 'gender', {'concept': 'sex'}], ['Ilmari Ahonen', 'gender', {'concept': 'sex'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Kirsten_Nesse property:gender ?p } UNION { resource:Ilmari_Ahonen property:gender ?p } } . ?p rdf:type ontology:sex }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P169
Q502895 Q11032 Q43229
USER
Which people are the CEO of max number of newspapers or organizations ?
(c(Q11032)|c(Q43229),P169,c(Q502895))
action argmax
action union
action find_reverse_tuple_counts
relation P169
type Q502895
type Q11032
action find_reverse_tuple_counts
relation P169
type Q502895
type Q43229
[[{'concept': 'Q11032'}, {'concept': 'Q43229'}], 'P169', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MAX ( ?k ) AS ?c ) { SELECT DISTINCT ( COUNT ( ?d ) AS ?k ) ?z WHERE { VALUES ( ?q ) { ( ontology:Q11032 ) ( ontology:Q43229 ) } . ?d rdf:type ?q } GROUP BY ?z } } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?m ) ?h WHERE { VALUES ( ?l ) { ( ontology:Q11032 ) ( ontology:Q43229 ) } . ?b rdf:type ?l } GROUP BY ?h } . FILTER ( ?m = ?c ) }
action argmax
action union
action find_reverse_tuple_counts
relation chief executive officer
type common name
type newspaper
action find_reverse_tuple_counts
relation chief executive officer
type common name
type organization
[[{'concept': 'newspaper'}, {'concept': 'organization'}], 'chief executive officer', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MAX ( ?k ) AS ?c ) { SELECT DISTINCT ( COUNT ( ?d ) AS ?k ) ?z WHERE { VALUES ( ?q ) { ( ontology:newspaper ) ( ontology:organization ) } . ?d rdf:type ?q } GROUP BY ?z } } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?m ) ?h WHERE { VALUES ( ?l ) { ( ontology:newspaper ) ( ontology:organization ) } . ?b rdf:type ?l } GROUP BY ?h } . FILTER ( ?m = ?c ) }
[]
common name newspaper organization
Q4934 Q5558291
SYSTEM
Larry Page, Giannis Vardinogiannis
Q4934 Q5558291
(c(Q11032)|c(Q43229),P169,c(Q502895))
action argmax
action union
action find_reverse_tuple_counts
relation P169
type Q502895
type Q11032
action find_reverse_tuple_counts
relation P169
type Q502895
type Q43229
[ANSWERS] are the CEO of max number of newspapers or organizations
[[{'concept': 'Q11032'}, {'concept': 'Q43229'}], 'P169', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MAX ( ?k ) AS ?c ) { SELECT DISTINCT ( COUNT ( ?d ) AS ?k ) ?z WHERE { VALUES ( ?q ) { ( ontology:Q11032 ) ( ontology:Q43229 ) } . ?d rdf:type ?q } GROUP BY ?z } } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?m ) ?h WHERE { VALUES ( ?l ) { ( ontology:Q11032 ) ( ontology:Q43229 ) } . ?b rdf:type ?l } GROUP BY ?h } . FILTER ( ?m = ?c ) }
Larry Page Giannis Vardinogiannis
Larry Page and Giannis Vardinogiannis are the CEO of max number of newspapers or organizations
Larry Page Giannis Vardinogiannis
action argmax
action union
action find_reverse_tuple_counts
relation chief executive officer
type common name
type newspaper
action find_reverse_tuple_counts
relation chief executive officer
type common name
type organization
[[{'concept': 'newspaper'}, {'concept': 'organization'}], 'chief executive officer', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MAX ( ?k ) AS ?c ) { SELECT DISTINCT ( COUNT ( ?d ) AS ?k ) ?z WHERE { VALUES ( ?q ) { ( ontology:newspaper ) ( ontology:organization ) } . ?d rdf:type ?q } GROUP BY ?z } } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?m ) ?h WHERE { VALUES ( ?l ) { ( ontology:newspaper ) ( ontology:organization ) } . ?b rdf:type ?l } GROUP BY ?h } . FILTER ( ?m = ?c ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q4934
P172
Q2472587
USER
Which people does that person have as his/her race ?
(Q4934,P172,c(Q2472587))
action filter_type
action find
entity Q4934
relation P172
type Q2472587
['Q4934', 'P172', {'concept': 'Q2472587'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q2472587 . resource:Q4934 property:P172 ?q }
Larry Page
action filter_type
action find
entity Larry Page
relation ethnic group
type people
['Larry Page', 'ethnic group', {'concept': 'people'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:people . resource:Larry_Page property:ethnic_group ?q }
[]
people
Clarification for simple ques.
Q5558291
SYSTEM
Did you mean Giannis Vardinogiannis ?
Q4934 Q5558291
(Q4934,P172,c(Q2472587)) (Q5558291,P172,c(Q2472587))
[ANSWER]
['Q4934', 'P172', {'concept': 'Q2472587'}] ['Q5558291', 'P172', {'concept': 'Q2472587'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q2472587 . resource:Q4934 property:P172 ?q }
Larry Page Giannis Vardinogiannis
Did you mean Giannis Vardinogiannis ?
Giannis Vardinogiannis
['Larry Page', 'ethnic group', {'concept': 'people'}] ['Giannis Vardinogiannis', 'ethnic group', {'concept': 'people'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:people . resource:Larry_Page property:ethnic_group ?q }
[]
Simple Question (Coreferenced)
USER
No, I meant Larry Page. Could you tell me the answer for that?
(Q4934,P172,c(Q2472587))
Q4934
['Q4934', 'P172', {'concept': 'Q2472587'}]
['Larry Page', 'ethnic group', {'concept': 'people'}]
[]
Q7325
SYSTEM
Jewish people
Q7325
(Q4934,P172,c(Q2472587))
action filter_type
action find
entity Q4934
relation P172
type Q2472587
[ANSWER] that person has as his / her race
['Q4934', 'P172', {'concept': 'Q2472587'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q2472587 . resource:Q4934 property:P172 ?q }
Jewish people
Jewish people that person has as his / her race
Jewish people
action filter_type
action find
entity Larry Page
relation ethnic group
type people
['Larry Page', 'ethnic group', {'concept': 'people'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:people . resource:Larry_Page property:ethnic_group ?q }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q7325 Q6880930
P172
Q502895
USER
Does Mitch Love have that people as ethnic group ?
(Q6880930,P172,Q7325)
action is_in
entity Q6880930
action find
entity Q7325
relation P172
['Q6880930', 'P172', 'Q7325']
ASK WHERE { resource:Q7325 property:P172 resource:Q6880930 }
Jewish people Mitch Love
action is_in
entity Mitch Love
action find
entity Jewish people
relation ethnic group
['Mitch Love', 'ethnic group', 'Jewish people']
ASK WHERE { resource:Jewish_people property:ethnic_group resource:Mitch_Love }
[]
common name
SYSTEM
NO
(Q6880930,P172,Q7325)
action is_in
entity Q6880930
action find
entity Q7325
relation P172
[ANSWER]
['Q6880930', 'P172', 'Q7325']
ASK WHERE { resource:Q7325 property:P172 resource:Q6880930 }
No
action is_in
entity Mitch Love
action find
entity Jewish people
relation ethnic group
['Mitch Love', 'ethnic group', 'Jewish people']
ASK WHERE { resource:Jewish_people property:ethnic_group resource:Mitch_Love }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q5558291 Q4816680
P19
Q56061
USER
Is Karacasu the birthplace of Giannis Vardinogiannis ?
(Q5558291,P19,Q4816680)
action is_in
entity Q4816680
action find
entity Q5558291
relation P19
['Q5558291', 'P19', 'Q4816680']
ASK WHERE { resource:Q5558291 property:P19 resource:Q4816680 }
Giannis Vardinogiannis Karacasu
action is_in
entity Karacasu
action find
entity Giannis Vardinogiannis
relation place of birth
['Giannis Vardinogiannis', 'place of birth', 'Karacasu']
ASK WHERE { resource:Giannis_Vardinogiannis property:place_of_birth resource:Karacasu }
[]
administrative territorial entity
SYSTEM
NO
(Q5558291,P19,Q4816680)
action is_in
entity Q4816680
action find
entity Q5558291
relation P19
[ANSWER]
['Q5558291', 'P19', 'Q4816680']
ASK WHERE { resource:Q5558291 property:P19 resource:Q4816680 }
No
action is_in
entity Karacasu
action find
entity Giannis Vardinogiannis
relation place of birth
['Giannis Vardinogiannis', 'place of birth', 'Karacasu']
ASK WHERE { resource:Giannis_Vardinogiannis property:place_of_birth resource:Karacasu }
[]