Simple Question (Direct)
Simple Question
Q79093
P734
Q82799
USER
Who has the surname Franz von Werner ?
(Q79093,P734,c(Q82799))
action filter_type
action find
entity Q79093
relation P734
type Q82799
['Q79093', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q82799 . resource:Q79093 property:P734 ?f }
Franz von Werner
action filter_type
action find
entity Franz von Werner
relation family name
type name
['Franz von Werner', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:name . resource:Franz_von_Werner property:family_name ?f }
[]
name
Q18012370
SYSTEM
Werner
Q18012370
(Q79093,P734,c(Q82799))
action filter_type
action find
entity Q79093
relation P734
type Q82799
[ANSWER] has the surname Franz von [ANSWER]
['Q79093', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q82799 . resource:Q79093 property:P734 ?f }
Werner
Werner has the surname Franz von Werner
Werner
action filter_type
action find
entity Franz von Werner
relation family name
type name
['Franz von Werner', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:name . resource:Franz_von_Werner property:family_name ?f }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q79093
P21
Q290
USER
Which sex does Franz von Werner possess ?
(Q79093,P21,c(Q290))
action filter_type
action find
entity Q79093
relation P21
type Q290
['Q79093', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?p WHERE { resource:Q79093 property:P21 ?p . ?p rdf:type ontology:Q290 }
Franz von Werner
action filter_type
action find
entity Franz von Werner
relation gender
type sex
['Franz von Werner', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?p WHERE { resource:Franz_von_Werner property:gender ?p . ?p rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q79093,P21,c(Q290))
action filter_type
action find
entity Q79093
relation P21
type Q290
Franz von Werner possesses un [ANSWER]
['Q79093', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?p WHERE { resource:Q79093 property:P21 ?p . ?p rdf:type ontology:Q290 }
male
Franz von Werner possesses un male
male
action filter_type
action find
entity Franz von Werner
relation gender
type sex
['Franz von Werner', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?p WHERE { resource:Franz_von_Werner property:gender ?p . ?p rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6581097
P69
Q502895
USER
Who was a student at that sex ?
(c(Q502895),P69,Q6581097)
action filter_type
action find_reverse
entity Q6581097
relation P69
type Q502895
[{'concept': 'Q502895'}, 'P69', 'Q6581097']
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q502895 . ?u property:P69 resource:Q6581097 }
male
action filter_type
action find_reverse
entity male
relation educated at
type common name
[{'concept': 'common name'}, 'educated at', 'male']
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:common_name . ?u property:educated_at resource:male }
[]
common name
Q4662307
SYSTEM
Aaron Parchem
Q4662307
(c(Q502895),P69,Q6581097)
action filter_type
action find_reverse
entity Q6581097
relation P69
type Q502895
[ANSWER] was a student at that sex
[{'concept': 'Q502895'}, 'P69', 'Q6581097']
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q502895 . ?u property:P69 resource:Q6581097 }
Aaron Parchem
Aaron Parchem was a student at that sex
Aaron Parchem
action filter_type
action find_reverse
entity male
relation educated at
type common name
[{'concept': 'common name'}, 'educated at', 'male']
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:common_name . ?u property:educated_at resource:male }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q4662307 Q9672
P1344
Q15900616
USER
Did that person participate in 2006 Winter Olympics ?
(Q4662307,P1344,Q9672)
action is_in
entity Q9672
action find
entity Q4662307
relation P1344
['Q4662307', 'P1344', 'Q9672']
ASK WHERE { resource:Q4662307 property:P1344 resource:Q9672 }
Aaron Parchem 2006 Winter Olympics
action is_in
entity 2006 Winter Olympics
action find
entity Aaron Parchem
relation participant of
['Aaron Parchem', 'participant of', '2006 Winter Olympics']
ASK WHERE { resource:Aaron_Parchem property:participant_of resource:2006_Winter_Olympics }
[]
event sequence
SYSTEM
YES
(Q4662307,P1344,Q9672)
action is_in
entity Q9672
action find
entity Q4662307
relation P1344
[ANSWER]
['Q4662307', 'P1344', 'Q9672']
ASK WHERE { resource:Q4662307 property:P1344 resource:Q9672 }
Yes
action is_in
entity 2006 Winter Olympics
action find
entity Aaron Parchem
relation participant of
['Aaron Parchem', 'participant of', '2006 Winter Olympics']
ASK WHERE { resource:Aaron_Parchem property:participant_of resource:2006_Winter_Olympics }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q890073
P1303
Q34379 Q502895
USER
How many musical instruments can lesser number of people perform with than Body percussion ?
(c(Q502895),P1303,c(Q34379))
action count
action less
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find_reverse
entity Q890073
relation P1303
type Q502895
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?v ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?z ) AS ?l ) WHERE { ?z property:P1303 ?u . ?z rdf:type ontology:Q502895 . ?u rdf:type ontology:Q34379 } GROUP BY ?u } . FILTER ( ?l < ?i ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?i ) WHERE { ?j property:P1303 resource:Q890073 . ?j rdf:type ontology:Q502895 } } }
Body percussion
action count
action less
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find_reverse
entity Body percussion
relation instrument
type common name
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?v ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?z ) AS ?l ) WHERE { ?z property:instrument ?u . ?z rdf:type ontology:common_name . ?u rdf:type ontology:musical_instrument } GROUP BY ?u } . FILTER ( ?l < ?i ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?i ) WHERE { ?j property:instrument resource:Body_percussion . ?j rdf:type ontology:common_name } } }
[]
musical instrument common name
SYSTEM
3
Q1879664 Q748455 Q173453
(c(Q502895),P1303,c(Q34379))
action count
action less
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find_reverse
entity Q890073
relation P1303
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?v ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?z ) AS ?l ) WHERE { ?z property:P1303 ?u . ?z rdf:type ontology:Q502895 . ?u rdf:type ontology:Q34379 } GROUP BY ?u } . FILTER ( ?l < ?i ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?i ) WHERE { ?j property:P1303 resource:Q890073 . ?j rdf:type ontology:Q502895 } } }
spoon cajón wind instrument
3
action count
action less
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find_reverse
entity Body percussion
relation instrument
type common name
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?v ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?z ) AS ?l ) WHERE { ?z property:instrument ?u . ?z rdf:type ontology:common_name . ?u rdf:type ontology:musical_instrument } GROUP BY ?u } . FILTER ( ?l < ?i ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?i ) WHERE { ?j property:instrument resource:Body_percussion . ?j rdf:type ontology:common_name } } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q79093
P19
Q56061
USER
Which administrative territory was Franz von Werner born in ?
(Q79093,P19,c(Q56061))
action filter_type
action find
entity Q79093
relation P19
type Q56061
['Q79093', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?j WHERE { resource:Q79093 property:P19 ?j . ?j rdf:type ontology:Q56061 }
Franz von Werner
action filter_type
action find
entity Franz von Werner
relation place of birth
type administrative territorial entity
['Franz von Werner', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Franz_von_Werner property:place_of_birth ?j . ?j rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1741
SYSTEM
Vienna
Q1741
(Q79093,P19,c(Q56061))
action filter_type
action find
entity Q79093
relation P19
type Q56061
Franz von Werner was born in [ANSWER]
['Q79093', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?j WHERE { resource:Q79093 property:P19 ?j . ?j rdf:type ontology:Q56061 }
Vienna
Franz von Werner was born in Vienna
Vienna
action filter_type
action find
entity Franz von Werner
relation place of birth
type administrative territorial entity
['Franz von Werner', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Franz_von_Werner property:place_of_birth ?j . ?j rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q1741 Q857310 Q1899
P190
Q515
USER
Is that administrative territory twin town of Rittō and Kyiv ?
(Q1741,P190,Q857310) (Q1741,P190,Q1899)
action is_in
entity Q1741
action intersection
action find_reverse
entity Q857310
relation P190
action find_reverse
entity Q1899
relation P190
['Q1741', 'P190', 'Q857310'] ['Q1741', 'P190', 'Q1899']
ASK WHERE { resource:Q1741 property:P190 resource:Q857310 . resource:Q1741 property:P190 resource:Q1899 }
Vienna Rittō Kyiv
action is_in
entity Vienna
action intersection
action find_reverse
entity Rittō
relation sister city
action find_reverse
entity Kyiv
relation sister city
['Vienna', 'sister city', 'Rittō'] ['Vienna', 'sister city', 'Kyiv']
ASK WHERE { resource:Vienna property:sister_city resource:Rittō . resource:Vienna property:sister_city resource:Kyiv }
[]
city
SYSTEM
NO and YES respectively
(Q1741,P190,Q857310) (Q1741,P190,Q1899)
action is_in
entity Q1741
action intersection
action find_reverse
entity Q857310
relation P190
action find_reverse
entity Q1899
relation P190
[ANSWER]
['Q1741', 'P190', 'Q857310'] ['Q1741', 'P190', 'Q1899']
ASK WHERE { resource:Q1741 property:P190 resource:Q857310 . resource:Q1741 property:P190 resource:Q1899 }
NO and YES respectively
action is_in
entity Vienna
action intersection
action find_reverse
entity Rittō
relation sister city
action find_reverse
entity Kyiv
relation sister city
['Vienna', 'sister city', 'Rittō'] ['Vienna', 'sister city', 'Kyiv']
ASK WHERE { resource:Vienna property:sister_city resource:Rittō . resource:Vienna property:sister_city resource:Kyiv }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q876933
P180
Q82799 Q3305213 Q11060274
USER
How many names are expressed in more number of paintings or prints than magi ?
(c(Q3305213)|c(Q11060274),P180,c(Q82799))
action count
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q82799
type Q11060274
action count
action filter_multi_types
action find_reverse
entity Q876933
relation P180
type Q3305213
type Q11060274
[[{'concept': 'Q3305213'}, {'concept': 'Q11060274'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?l ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?c ) AS ?k ) WHERE { { ?b rdf:type ontology:Q82799 . ?c rdf:type ontology:Q3305213 . ?c property:P180 ?b } UNION { ?c property:P180 ?b . ?b rdf:type ontology:Q82799 . ?c rdf:type ontology:Q11060274 } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?m ) WHERE { ?j property:P180 resource:Q876933 . { ?j rdf:type ?y . VALUES ( ?y ) { ( ontology:Q3305213 ) ( ontology:Q11060274 ) } } } } . FILTER ( ?k > ?m ) }
magi
action count
action greater
action union
action find_reverse_tuple_counts
relation depicts
type name
type painting
action find_reverse_tuple_counts
relation depicts
type name
type print
action count
action filter_multi_types
action find_reverse
entity magi
relation depicts
type painting
type print
[[{'concept': 'painting'}, {'concept': 'print'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?l ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?c ) AS ?k ) WHERE { { ?b rdf:type ontology:name . ?c rdf:type ontology:painting . ?c property:depicts ?b } UNION { ?c property:depicts ?b . ?b rdf:type ontology:name . ?c rdf:type ontology:print } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?m ) WHERE { ?j property:depicts resource:magi . { ?j rdf:type ?y . VALUES ( ?y ) { ( ontology:painting ) ( ontology:print ) } } } } . FILTER ( ?k > ?m ) }
[]
name painting print
SYSTEM
6
Q5 Q726 Q830 Q7368 Q144 Q43115
(c(Q3305213)|c(Q11060274),P180,c(Q82799))
action count
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q82799
type Q11060274
action count
action filter_multi_types
action find_reverse
entity Q876933
relation P180
type Q3305213
type Q11060274
[ANSWER]
[[{'concept': 'Q3305213'}, {'concept': 'Q11060274'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?l ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?c ) AS ?k ) WHERE { { ?b rdf:type ontology:Q82799 . ?c rdf:type ontology:Q3305213 . ?c property:P180 ?b } UNION { ?c property:P180 ?b . ?b rdf:type ontology:Q82799 . ?c rdf:type ontology:Q11060274 } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?m ) WHERE { ?j property:P180 resource:Q876933 . { ?j rdf:type ?y . VALUES ( ?y ) { ( ontology:Q3305213 ) ( ontology:Q11060274 ) } } } } . FILTER ( ?k > ?m ) }
human horse cattle Ovis aries dog saint
6
action count
action greater
action union
action find_reverse_tuple_counts
relation depicts
type name
type painting
action find_reverse_tuple_counts
relation depicts
type name
type print
action count
action filter_multi_types
action find_reverse
entity magi
relation depicts
type painting
type print
[[{'concept': 'painting'}, {'concept': 'print'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?l ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?c ) AS ?k ) WHERE { { ?b rdf:type ontology:name . ?c rdf:type ontology:painting . ?c property:depicts ?b } UNION { ?c property:depicts ?b . ?b rdf:type ontology:name . ?c rdf:type ontology:print } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?m ) WHERE { ?j property:depicts resource:magi . { ?j rdf:type ?y . VALUES ( ?y ) { ( ontology:painting ) ( ontology:print ) } } } } . FILTER ( ?k > ?m ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q1865281
P180
Q82799 Q3305213 Q11060274
USER
And also tell me about whale?
(c(Q3305213)|c(Q11060274),P180,c(Q82799))
action count
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q82799
type Q11060274
action count
action filter_multi_types
action find_reverse
entity Q1865281
relation P180
type Q3305213
type Q11060274
[[{'concept': 'Q3305213'}, {'concept': 'Q11060274'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?c ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?h ) AS ?n ) WHERE { { ?w rdf:type ontology:Q82799 . ?h rdf:type ontology:Q3305213 . ?h property:P180 ?w } UNION { ?h property:P180 ?w . ?w rdf:type ontology:Q82799 . ?h rdf:type ontology:Q11060274 } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?z ) WHERE { { { ?e rdf:type ontology:Q3305213 } UNION { ?e rdf:type ontology:Q11060274 } } . ?e property:P180 resource:Q1865281 } } . FILTER ( ?n > ?z ) }
whale
action count
action greater
action union
action find_reverse_tuple_counts
relation depicts
type name
type painting
action find_reverse_tuple_counts
relation depicts
type name
type print
action count
action filter_multi_types
action find_reverse
entity whale
relation depicts
type painting
type print
[[{'concept': 'painting'}, {'concept': 'print'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?c ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?h ) AS ?n ) WHERE { { ?w rdf:type ontology:name . ?h rdf:type ontology:painting . ?h property:depicts ?w } UNION { ?h property:depicts ?w . ?w rdf:type ontology:name . ?h rdf:type ontology:print } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?z ) WHERE { { { ?e rdf:type ontology:painting } UNION { ?e rdf:type ontology:print } } . ?e property:depicts resource:whale } } . FILTER ( ?n > ?z ) }
[]
name painting print
SYSTEM
16
Q5 Q726 Q830 Q3736439 Q7368 Q2092297 Q144 Q201251 Q8335 Q3537778 Q1367 Q2734060 Q43115 Q876933 Q152 Q859257
(c(Q3305213)|c(Q11060274),P180,c(Q82799))
action count
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q82799
type Q11060274
action count
action filter_multi_types
action find_reverse
entity Q1865281
relation P180
type Q3305213
type Q11060274
[ANSWER]
[[{'concept': 'Q3305213'}, {'concept': 'Q11060274'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?c ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?h ) AS ?n ) WHERE { { ?w rdf:type ontology:Q82799 . ?h rdf:type ontology:Q3305213 . ?h property:P180 ?w } UNION { ?h property:P180 ?w . ?w rdf:type ontology:Q82799 . ?h rdf:type ontology:Q11060274 } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?z ) WHERE { { { ?e rdf:type ontology:Q3305213 } UNION { ?e rdf:type ontology:Q11060274 } } . ?e property:P180 resource:Q1865281 } } . FILTER ( ?n > ?z ) }
human horse cattle duck Ovis aries eagle dog peacock raven donkeys monkey reed saint magi fish fly
16
action count
action greater
action union
action find_reverse_tuple_counts
relation depicts
type name
type painting
action find_reverse_tuple_counts
relation depicts
type name
type print
action count
action filter_multi_types
action find_reverse
entity whale
relation depicts
type painting
type print
[[{'concept': 'painting'}, {'concept': 'print'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?c ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?h ) AS ?n ) WHERE { { ?w rdf:type ontology:name . ?h rdf:type ontology:painting . ?h property:depicts ?w } UNION { ?h property:depicts ?w . ?w rdf:type ontology:name . ?h rdf:type ontology:print } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?z ) WHERE { { { ?e rdf:type ontology:painting } UNION { ?e rdf:type ontology:print } } . ?e property:depicts resource:whale } } . FILTER ( ?n > ?z ) }
[]