Simple Question (Direct)
Simple Question
Q927383
P2416
Q349
USER
Which sport was William Petersson a contestant of ?
(Q927383,P2416,c(Q349))
action filter_type
action find
entity Q927383
relation P2416
type Q349
['Q927383', 'P2416', {'concept': 'Q349'}]
SELECT DISTINCT ?v WHERE { resource:Q927383 property:P2416 ?v . ?v rdf:type ontology:Q349 }
William Petersson
action filter_type
action find
entity William Petersson
relation sports discipline competed in
type sport
['William Petersson', 'sports discipline competed in', {'concept': 'sport'}]
SELECT DISTINCT ?v WHERE { resource:William_Petersson property:sports_discipline_competed_in ?v . ?v rdf:type ontology:sport }
[]
sport
Q170737
SYSTEM
long jump
Q170737
(Q927383,P2416,c(Q349))
action filter_type
action find
entity Q927383
relation P2416
type Q349
Which sport was William Petersson a contestant of
['Q927383', 'P2416', {'concept': 'Q349'}]
SELECT DISTINCT ?v WHERE { resource:Q927383 property:P2416 ?v . ?v rdf:type ontology:Q349 }
long jump
Which sport was William Petersson a contestant of
long jump
action filter_type
action find
entity William Petersson
relation sports discipline competed in
type sport
['William Petersson', 'sports discipline competed in', {'concept': 'sport'}]
SELECT DISTINCT ?v WHERE { resource:William_Petersson property:sports_discipline_competed_in ?v . ?v rdf:type ontology:sport }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q927383
P20
Q56061
USER
Where did William Petersson expire ?
(Q927383,P20,c(Q56061))
action filter_type
action find
entity Q927383
relation P20
type Q56061
['Q927383', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q56061 . resource:Q927383 property:P20 ?a }
William Petersson
action filter_type
action find
entity William Petersson
relation place of death
type administrative territorial entity
['William Petersson', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:administrative_territorial_entity . resource:William_Petersson property:place_of_death ?a }
[]
administrative territorial entity
Q26345
SYSTEM
Kalmar
Q26345
(Q927383,P20,c(Q56061))
action filter_type
action find
entity Q927383
relation P20
type Q56061
William Petersson expired [ANSWER]
['Q927383', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q56061 . resource:Q927383 property:P20 ?a }
Kalmar
William Petersson expired Kalmar
Kalmar
action filter_type
action find
entity William Petersson
relation place of death
type administrative territorial entity
['William Petersson', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:administrative_territorial_entity . resource:William_Petersson property:place_of_death ?a }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q927383
P21
Q290
USER
Which sex does William Petersson belong to ?
(Q927383,P21,c(Q290))
action filter_type
action find
entity Q927383
relation P21
type Q290
['Q927383', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?b WHERE { resource:Q927383 property:P21 ?b . ?b rdf:type ontology:Q290 }
William Petersson
action filter_type
action find
entity William Petersson
relation gender
type sex
['William Petersson', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?b WHERE { resource:William_Petersson property:gender ?b . ?b rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q927383,P21,c(Q290))
action filter_type
action find
entity Q927383
relation P21
type Q290
William Petersson belongs to [ANSWER]
['Q927383', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?b WHERE { resource:Q927383 property:P21 ?b . ?b rdf:type ontology:Q290 }
male
William Petersson belongs to male
male
action filter_type
action find
entity William Petersson
relation gender
type sex
['William Petersson', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?b WHERE { resource:William_Petersson property:gender ?b . ?b rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q927383
P106
Q151885
USER
What is the job of that person ?
(Q6581097,P106,c(Q151885))
action filter_type
action find
entity Q927383
relation P106
type Q151885
['Q6581097', 'P106', {'concept': 'Q151885'}]
SELECT DISTINCT ?r WHERE { resource:Q927383 property:P106 ?r . ?r rdf:type ontology:Q151885 }
William Petersson
action filter_type
action find
entity William Petersson
relation occupation
type concept
['male', 'occupation', {'concept': 'concept'}]
SELECT DISTINCT ?r WHERE { resource:William_Petersson property:occupation ?r . ?r rdf:type ontology:concept }
[]
concept
Q11513337
SYSTEM
athletics competitor
Q11513337
(Q6581097,P106,c(Q151885))
action filter_type
action find
entity Q927383
relation P106
type Q151885
The job of that person is an [ANSWER]
['Q6581097', 'P106', {'concept': 'Q151885'}]
SELECT DISTINCT ?r WHERE { resource:Q927383 property:P106 ?r . ?r rdf:type ontology:Q151885 }
athletics competitor
The job of that person is an athletics competitor
athletics competitor
action filter_type
action find
entity William Petersson
relation occupation
type concept
['male', 'occupation', {'concept': 'concept'}]
SELECT DISTINCT ?r WHERE { resource:William_Petersson property:occupation ?r . ?r rdf:type ontology:concept }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Indirect
P180
Q151885 Q2342494 Q17335294
USER
Which concepts are expressed in greater number of collectables or coats of arms than that concept ?
(c(Q2342494)|c(Q17335294),P180,c(Q151885))
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q151885
type Q2342494
action find_reverse_tuple_counts
relation P180
type Q151885
type Q17335294
action count
action filter_multi_types
action find_reverse
entity Q11513337
relation P180
type Q2342494
type Q17335294
[[{'concept': 'Q2342494'}, {'concept': 'Q17335294'}], 'P180', {'concept': 'Q151885'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?o ) ?a WHERE { { ?q property:P180 ?a . ?a rdf:type ontology:Q151885 . ?q rdf:type ontology:Q2342494 } UNION { ?a rdf:type ontology:Q151885 . ?q rdf:type ontology:Q17335294 . ?q property:P180 ?a } } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?b ) WHERE { ?g property:P180 resource:Q11513337 . { { ?g rdf:type ontology:Q2342494 } UNION { ?g rdf:type ontology:Q17335294 } } } } . FILTER ( ?o > ?b ) }
action greater
action union
action find_reverse_tuple_counts
relation depicts
type concept
type collectable
action find_reverse_tuple_counts
relation depicts
type concept
type flag or coat of arms
action count
action filter_multi_types
action find_reverse
entity athletics competitor
relation depicts
type collectable
type flag or coat of arms
[[{'concept': 'collectable'}, {'concept': 'flag or coat of arms'}], 'depicts', {'concept': 'concept'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?o ) ?a WHERE { { ?q property:depicts ?a . ?a rdf:type ontology:concept . ?q rdf:type ontology:collectable } UNION { ?a rdf:type ontology:concept . ?q rdf:type ontology:flag_or_coat_of_arms . ?q property:depicts ?a } } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?b ) WHERE { ?g property:depicts resource:athletics_competitor . { { ?g rdf:type ontology:collectable } UNION { ?g rdf:type ontology:flag_or_coat_of_arms } } } } . FILTER ( ?o > ?b ) }
[]
concept collectable flag or coat of arms
Q467 Q273283 Q8441
SYSTEM
woman, beggar, man
Q467 Q273283 Q8441
(c(Q2342494)|c(Q17335294),P180,c(Q151885))
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q151885
type Q2342494
action find_reverse_tuple_counts
relation P180
type Q151885
type Q17335294
action count
action filter_multi_types
action find_reverse
entity Q11513337
relation P180
type Q2342494
type Q17335294
[ANSWERS] are expressed in greater number of collectables or coats of arms than that concept
[[{'concept': 'Q2342494'}, {'concept': 'Q17335294'}], 'P180', {'concept': 'Q151885'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?o ) ?a WHERE { { ?q property:P180 ?a . ?a rdf:type ontology:Q151885 . ?q rdf:type ontology:Q2342494 } UNION { ?a rdf:type ontology:Q151885 . ?q rdf:type ontology:Q17335294 . ?q property:P180 ?a } } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?b ) WHERE { ?g property:P180 resource:Q11513337 . { { ?g rdf:type ontology:Q2342494 } UNION { ?g rdf:type ontology:Q17335294 } } } } . FILTER ( ?o > ?b ) }
woman beggar man
Woman, beggar and man are expressed in greater number of collectables or coats of arms than that concept
woman beggar man
action greater
action union
action find_reverse_tuple_counts
relation depicts
type concept
type collectable
action find_reverse_tuple_counts
relation depicts
type concept
type flag or coat of arms
action count
action filter_multi_types
action find_reverse
entity athletics competitor
relation depicts
type collectable
type flag or coat of arms
[[{'concept': 'collectable'}, {'concept': 'flag or coat of arms'}], 'depicts', {'concept': 'concept'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?o ) ?a WHERE { { ?q property:depicts ?a . ?a rdf:type ontology:concept . ?q rdf:type ontology:collectable } UNION { ?a rdf:type ontology:concept . ?q rdf:type ontology:flag_or_coat_of_arms . ?q property:depicts ?a } } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?b ) WHERE { ?g property:depicts resource:athletics_competitor . { { ?g rdf:type ontology:collectable } UNION { ?g rdf:type ontology:flag_or_coat_of_arms } } } } . FILTER ( ?o > ?b ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P136
Q151885 Q502895 Q2088357
USER
Which concepts are the genre of max number of people or musical ensembles ?
(c(Q502895)|c(Q2088357),P136,c(Q151885))
action argmax
action union
action find_reverse_tuple_counts
relation P136
type Q151885
type Q502895
action find_reverse_tuple_counts
relation P136
type Q151885
type Q2088357
[[{'concept': 'Q502895'}, {'concept': 'Q2088357'}], 'P136', {'concept': 'Q151885'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?g ) { SELECT DISTINCT ?c ( COUNT ( ?a ) AS ?r ) WHERE { ?a rdf:type ?e . VALUES ( ?e ) { ( ontology:Q502895 ) ( ontology:Q2088357 ) } } GROUP BY ?c } } . { SELECT DISTINCT ?u ( COUNT ( ?h ) AS ?b ) WHERE { { ?u rdf:type ontology:Q151885 . ?h rdf:type ontology:Q2088357 . ?h property:P136 ?u } UNION { ?h property:P136 ?u . ?u rdf:type ontology:Q151885 . ?h rdf:type ontology:Q502895 } } GROUP BY ?u } . FILTER ( ?b = ?g ) }
action argmax
action union
action find_reverse_tuple_counts
relation genre
type concept
type common name
action find_reverse_tuple_counts
relation genre
type concept
type musical ensemble
[[{'concept': 'common name'}, {'concept': 'musical ensemble'}], 'genre', {'concept': 'concept'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?g ) { SELECT DISTINCT ?c ( COUNT ( ?a ) AS ?r ) WHERE { ?a rdf:type ?e . VALUES ( ?e ) { ( ontology:common_name ) ( ontology:musical_ensemble ) } } GROUP BY ?c } } . { SELECT DISTINCT ?u ( COUNT ( ?h ) AS ?b ) WHERE { { ?u rdf:type ontology:concept . ?h rdf:type ontology:musical_ensemble . ?h property:genre ?u } UNION { ?h property:genre ?u . ?u rdf:type ontology:concept . ?h rdf:type ontology:common_name } } GROUP BY ?u } . FILTER ( ?b = ?g ) }
[]
concept common name musical ensemble
Q8341
SYSTEM
jazz
Q8341
(c(Q502895)|c(Q2088357),P136,c(Q151885))
action argmax
action union
action find_reverse_tuple_counts
relation P136
type Q151885
type Q502895
action find_reverse_tuple_counts
relation P136
type Q151885
type Q2088357
[ANSWER] is the genre of max number of people or musical ensembles
[[{'concept': 'Q502895'}, {'concept': 'Q2088357'}], 'P136', {'concept': 'Q151885'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?g ) { SELECT DISTINCT ?c ( COUNT ( ?a ) AS ?r ) WHERE { ?a rdf:type ?e . VALUES ( ?e ) { ( ontology:Q502895 ) ( ontology:Q2088357 ) } } GROUP BY ?c } } . { SELECT DISTINCT ?u ( COUNT ( ?h ) AS ?b ) WHERE { { ?u rdf:type ontology:Q151885 . ?h rdf:type ontology:Q2088357 . ?h property:P136 ?u } UNION { ?h property:P136 ?u . ?u rdf:type ontology:Q151885 . ?h rdf:type ontology:Q502895 } } GROUP BY ?u } . FILTER ( ?b = ?g ) }
jazz
Jazz is the genre of max number of people or musical ensembles
jazz
action argmax
action union
action find_reverse_tuple_counts
relation genre
type concept
type common name
action find_reverse_tuple_counts
relation genre
type concept
type musical ensemble
[[{'concept': 'common name'}, {'concept': 'musical ensemble'}], 'genre', {'concept': 'concept'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?g ) { SELECT DISTINCT ?c ( COUNT ( ?a ) AS ?r ) WHERE { ?a rdf:type ?e . VALUES ( ?e ) { ( ontology:common_name ) ( ontology:musical_ensemble ) } } GROUP BY ?c } } . { SELECT DISTINCT ?u ( COUNT ( ?h ) AS ?b ) WHERE { { ?u rdf:type ontology:concept . ?h rdf:type ontology:musical_ensemble . ?h property:genre ?u } UNION { ?h property:genre ?u . ?u rdf:type ontology:concept . ?h rdf:type ontology:common_name } } GROUP BY ?u } . FILTER ( ?b = ?g ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Indirect
P941
Q151885 Q483394 Q502895
USER
Which concepts inspired approximately the same number of genres or people as that concept ?
(c(Q483394)|c(Q502895),P941,c(Q151885))
action approx
action union
action find_reverse_tuple_counts
relation P941
type Q151885
type Q483394
action find_reverse_tuple_counts
relation P941
type Q151885
type Q502895
action count
action filter_multi_types
action find_reverse
entity Q8341
relation P941
type Q483394
type Q502895
[[{'concept': 'Q483394'}, {'concept': 'Q502895'}], 'P941', {'concept': 'Q151885'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?c ) ?v WHERE { ?d rdf:type ?p . VALUES ( ?p ) { ( ontology:Q483394 ) ( ontology:Q502895 ) } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?u ) WHERE { ?i property:P941 resource:Q8341 . { VALUES ( ?t ) { ( ontology:Q483394 ) ( ontology:Q502895 ) } . ?i rdf:type ?t } } } . FILTER ( ?c = ?u ) }
action approx
action union
action find_reverse_tuple_counts
relation inspired by
type concept
type genre
action find_reverse_tuple_counts
relation inspired by
type concept
type common name
action count
action filter_multi_types
action find_reverse
entity jazz
relation inspired by
type genre
type common name
[[{'concept': 'genre'}, {'concept': 'common name'}], 'inspired by', {'concept': 'concept'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?c ) ?v WHERE { ?d rdf:type ?p . VALUES ( ?p ) { ( ontology:genre ) ( ontology:common_name ) } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?u ) WHERE { ?i property:inspired_by resource:jazz . { VALUES ( ?t ) { ( ontology:genre ) ( ontology:common_name ) } . ?i rdf:type ?t } } } . FILTER ( ?c = ?u ) }
[]
concept genre common name
Q14559031 Q8341
SYSTEM
elevator music, jazz
Q14559031 Q8341
(c(Q483394)|c(Q502895),P941,c(Q151885))
action approx
action union
action find_reverse_tuple_counts
relation P941
type Q151885
type Q483394
action find_reverse_tuple_counts
relation P941
type Q151885
type Q502895
action count
action filter_multi_types
action find_reverse
entity Q8341
relation P941
type Q483394
type Q502895
[ANSWERS] inspired approximately the same number of genres or people as that concept
[[{'concept': 'Q483394'}, {'concept': 'Q502895'}], 'P941', {'concept': 'Q151885'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?c ) ?v WHERE { ?d rdf:type ?p . VALUES ( ?p ) { ( ontology:Q483394 ) ( ontology:Q502895 ) } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?u ) WHERE { ?i property:P941 resource:Q8341 . { VALUES ( ?t ) { ( ontology:Q483394 ) ( ontology:Q502895 ) } . ?i rdf:type ?t } } } . FILTER ( ?c = ?u ) }
elevator music jazz
Elevator music and jazz inspired approximately the same number of genres or people as that concept
elevator music jazz
action approx
action union
action find_reverse_tuple_counts
relation inspired by
type concept
type genre
action find_reverse_tuple_counts
relation inspired by
type concept
type common name
action count
action filter_multi_types
action find_reverse
entity jazz
relation inspired by
type genre
type common name
[[{'concept': 'genre'}, {'concept': 'common name'}], 'inspired by', {'concept': 'concept'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?c ) ?v WHERE { ?d rdf:type ?p . VALUES ( ?p ) { ( ontology:genre ) ( ontology:common_name ) } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?u ) WHERE { ?i property:inspired_by resource:jazz . { VALUES ( ?t ) { ( ontology:genre ) ( ontology:common_name ) } . ?i rdf:type ?t } } } . FILTER ( ?c = ?u ) }
[]