Simple Question (Direct)
Simple Question
Q660755
P734
Q82799
USER
Who has the surname Franz Keller ?
(Q660755,P734,c(Q82799))
action filter_type
action find
entity Q660755
relation P734
type Q82799
['Q660755', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?y WHERE { resource:Q660755 property:P734 ?y . ?y rdf:type ontology:Q82799 }
Franz Keller
action filter_type
action find
entity Franz Keller
relation family name
type name
['Franz Keller', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?y WHERE { resource:Franz_Keller property:family_name ?y . ?y rdf:type ontology:name }
[]
name
Q1738213
SYSTEM
Keller
Q1738213
(Q660755,P734,c(Q82799))
action filter_type
action find
entity Q660755
relation P734
type Q82799
[ANSWER] has the surname Franz [ANSWER]
['Q660755', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?y WHERE { resource:Q660755 property:P734 ?y . ?y rdf:type ontology:Q82799 }
Keller
Keller has the surname Franz Keller
Keller
action filter_type
action find
entity Franz Keller
relation family name
type name
['Franz Keller', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?y WHERE { resource:Franz_Keller property:family_name ?y . ?y rdf:type ontology:name }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q2092297
P180
Q82799 Q17335294 Q18783400
USER
How many names are expressed in less number of coats of arms and genres of sculpture than eagle ?
(c(Q17335294)|c(Q18783400),P180,c(Q82799))
action count
action less
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q17335294
action find_reverse_tuple_counts
relation P180
type Q82799
type Q18783400
action count
action filter_multi_types
action find_reverse
entity Q2092297
relation P180
type Q17335294
type Q18783400
[[{'concept': 'Q17335294'}, {'concept': 'Q18783400'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) ?s WHERE { { ?z property:P180 ?s . ?s rdf:type ontology:Q82799 . ?z rdf:type ontology:Q17335294 } UNION { ?z rdf:type ontology:Q18783400 . ?s rdf:type ontology:Q82799 . ?z property:P180 ?s } } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?m ) WHERE { ?n property:P180 resource:Q2092297 . { ?n rdf:type ?w . VALUES ( ?w ) { ( ontology:Q17335294 ) ( ontology:Q18783400 ) } } } } . FILTER ( ?y < ?m ) }
eagle
action count
action less
action union
action find_reverse_tuple_counts
relation depicts
type name
type flag or coat of arms
action find_reverse_tuple_counts
relation depicts
type name
type genre of sculpture
action count
action filter_multi_types
action find_reverse
entity eagle
relation depicts
type flag or coat of arms
type genre of sculpture
[[{'concept': 'flag or coat of arms'}, {'concept': 'genre of sculpture'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) ?s WHERE { { ?z property:depicts ?s . ?s rdf:type ontology:name . ?z rdf:type ontology:flag_or_coat_of_arms } UNION { ?z rdf:type ontology:genre_of_sculpture . ?s rdf:type ontology:name . ?z property:depicts ?s } } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?m ) WHERE { ?n property:depicts resource:eagle . { ?n rdf:type ?w . VALUES ( ?w ) { ( ontology:flag_or_coat_of_arms ) ( ontology:genre_of_sculpture ) } } } } . FILTER ( ?y < ?m ) }
[]
name flag or coat of arms genre of sculpture
SYSTEM
52
Q13219075 Q134609 Q5 Q6453151 Q830 Q3736439 Q41692 Q3711329 Q732775 Q36940 Q1517781 Q7368 Q7369 Q11946202 Q2258881 Q4767951 Q16529344 Q24067392 Q713019 Q1807269 Q201251 Q8331 Q8335 Q846664 Q3116510 Q3537778 Q1865281 Q1367 Q1192868 Q9394 Q2734060 Q2495957 Q1953597 Q15629245 Q25894 Q1466321 Q43115 Q858243 Q876933 Q190294 Q7378 Q123120 Q214169 Q538906 Q308841 Q1360763 Q83931 Q9458574 Q152 Q5070208 Q859257 Q10968813
(c(Q17335294)|c(Q18783400),P180,c(Q82799))
action count
action less
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q17335294
action find_reverse_tuple_counts
relation P180
type Q82799
type Q18783400
action count
action filter_multi_types
action find_reverse
entity Q2092297
relation P180
type Q17335294
type Q18783400
[ANSWER]
[[{'concept': 'Q17335294'}, {'concept': 'Q18783400'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) ?s WHERE { { ?z property:P180 ?s . ?s rdf:type ontology:Q82799 . ?z rdf:type ontology:Q17335294 } UNION { ?z rdf:type ontology:Q18783400 . ?s rdf:type ontology:Q82799 . ?z property:P180 ?s } } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?m ) WHERE { ?n property:P180 resource:Q2092297 . { ?n rdf:type ?w . VALUES ( ?w ) { ( ontology:Q17335294 ) ( ontology:Q18783400 ) } } } } . FILTER ( ?y < ?m ) }
octopus Cynara scolymus human toad cattle duck mule wolf Partridge sugarcane shrimp Ovis aries dolphin butterfly trout cattle goose Boy cannoneer leek peacock fox raven hawk frog donkeys whale monkey clam rabbit reed magpie slug lizard antelope Yellow jacket saint Tree squirrel magi mouflon elephant vulture pheasant thistle snail Scipio locust wasp fish kangaroo fly jay
52
action count
action less
action union
action find_reverse_tuple_counts
relation depicts
type name
type flag or coat of arms
action find_reverse_tuple_counts
relation depicts
type name
type genre of sculpture
action count
action filter_multi_types
action find_reverse
entity eagle
relation depicts
type flag or coat of arms
type genre of sculpture
[[{'concept': 'flag or coat of arms'}, {'concept': 'genre of sculpture'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) ?s WHERE { { ?z property:depicts ?s . ?s rdf:type ontology:name . ?z rdf:type ontology:flag_or_coat_of_arms } UNION { ?z rdf:type ontology:genre_of_sculpture . ?s rdf:type ontology:name . ?z property:depicts ?s } } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?m ) WHERE { ?n property:depicts resource:eagle . { ?n rdf:type ?w . VALUES ( ?w ) { ( ontology:flag_or_coat_of_arms ) ( ontology:genre_of_sculpture ) } } } } . FILTER ( ?y < ?m ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q144
P180
Q82799 Q17335294 Q18783400
USER
And how about dog?
(c(Q17335294)|c(Q18783400),P180,c(Q82799))
action count
action less
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q17335294
action find_reverse_tuple_counts
relation P180
type Q82799
type Q18783400
action count
action filter_multi_types
action find_reverse
entity Q144
relation P180
type Q17335294
type Q18783400
[[{'concept': 'Q17335294'}, {'concept': 'Q18783400'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?f ) ?w WHERE { { ?t property:P180 ?w . ?t rdf:type ontology:Q17335294 . ?w rdf:type ontology:Q82799 } UNION { ?t property:P180 ?w . ?t rdf:type ontology:Q18783400 . ?w rdf:type ontology:Q82799 } } GROUP BY ?w } . FILTER ( ?f < ?g ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?g ) WHERE { ?b property:P180 resource:Q144 . { { ?b rdf:type ontology:Q18783400 } UNION { ?b rdf:type ontology:Q17335294 } } } } }
dog
action count
action less
action union
action find_reverse_tuple_counts
relation depicts
type name
type flag or coat of arms
action find_reverse_tuple_counts
relation depicts
type name
type genre of sculpture
action count
action filter_multi_types
action find_reverse
entity dog
relation depicts
type flag or coat of arms
type genre of sculpture
[[{'concept': 'flag or coat of arms'}, {'concept': 'genre of sculpture'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?f ) ?w WHERE { { ?t property:depicts ?w . ?t rdf:type ontology:flag_or_coat_of_arms . ?w rdf:type ontology:name } UNION { ?t property:depicts ?w . ?t rdf:type ontology:genre_of_sculpture . ?w rdf:type ontology:name } } GROUP BY ?w } . FILTER ( ?f < ?g ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?g ) WHERE { ?b property:depicts resource:dog . { { ?b rdf:type ontology:genre_of_sculpture } UNION { ?b rdf:type ontology:flag_or_coat_of_arms } } } } }
[]
name flag or coat of arms genre of sculpture
SYSTEM
52
Q13219075 Q134609 Q5 Q6453151 Q830 Q3736439 Q41692 Q3711329 Q732775 Q36940 Q1517781 Q7368 Q7369 Q11946202 Q2258881 Q4767951 Q16529344 Q24067392 Q713019 Q1807269 Q201251 Q8331 Q8335 Q846664 Q3116510 Q3537778 Q1865281 Q1367 Q1192868 Q9394 Q2734060 Q2495957 Q1953597 Q15629245 Q25894 Q1466321 Q43115 Q858243 Q876933 Q190294 Q7378 Q123120 Q214169 Q538906 Q308841 Q1360763 Q83931 Q9458574 Q152 Q5070208 Q859257 Q10968813
(c(Q17335294)|c(Q18783400),P180,c(Q82799))
action count
action less
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q17335294
action find_reverse_tuple_counts
relation P180
type Q82799
type Q18783400
action count
action filter_multi_types
action find_reverse
entity Q144
relation P180
type Q17335294
type Q18783400
[ANSWER]
[[{'concept': 'Q17335294'}, {'concept': 'Q18783400'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?f ) ?w WHERE { { ?t property:P180 ?w . ?t rdf:type ontology:Q17335294 . ?w rdf:type ontology:Q82799 } UNION { ?t property:P180 ?w . ?t rdf:type ontology:Q18783400 . ?w rdf:type ontology:Q82799 } } GROUP BY ?w } . FILTER ( ?f < ?g ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?g ) WHERE { ?b property:P180 resource:Q144 . { { ?b rdf:type ontology:Q18783400 } UNION { ?b rdf:type ontology:Q17335294 } } } } }
octopus Cynara scolymus human toad cattle duck mule wolf Partridge sugarcane shrimp Ovis aries dolphin butterfly trout cattle goose Boy cannoneer leek peacock fox raven hawk frog donkeys whale monkey clam rabbit reed magpie slug lizard antelope Yellow jacket saint Tree squirrel magi mouflon elephant vulture pheasant thistle snail Scipio locust wasp fish kangaroo fly jay
52
action count
action less
action union
action find_reverse_tuple_counts
relation depicts
type name
type flag or coat of arms
action find_reverse_tuple_counts
relation depicts
type name
type genre of sculpture
action count
action filter_multi_types
action find_reverse
entity dog
relation depicts
type flag or coat of arms
type genre of sculpture
[[{'concept': 'flag or coat of arms'}, {'concept': 'genre of sculpture'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?f ) ?w WHERE { { ?t property:depicts ?w . ?t rdf:type ontology:flag_or_coat_of_arms . ?w rdf:type ontology:name } UNION { ?t property:depicts ?w . ?t rdf:type ontology:genre_of_sculpture . ?w rdf:type ontology:name } } GROUP BY ?w } . FILTER ( ?f < ?g ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?g ) WHERE { ?b property:depicts resource:dog . { { ?b rdf:type ontology:genre_of_sculpture } UNION { ?b rdf:type ontology:flag_or_coat_of_arms } } } } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q660755
P641
Q212434
USER
Which Olympic sport did Franz Keller participate in ?
(Q660755,P641,c(Q212434))
action filter_type
action find
entity Q660755
relation P641
type Q212434
['Q660755', 'P641', {'concept': 'Q212434'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q212434 . resource:Q660755 property:P641 ?i }
Franz Keller
action filter_type
action find
entity Franz Keller
relation sport
type Olympic sport
['Franz Keller', 'sport', {'concept': 'Olympic sport'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Olympic_sport . resource:Franz_Keller property:sport ?i }
[]
Olympic sport
Q7718
SYSTEM
ski jumping
Q7718
(Q660755,P641,c(Q212434))
action filter_type
action find
entity Q660755
relation P641
type Q212434
Franz Keller participated in [ANSWER]
['Q660755', 'P641', {'concept': 'Q212434'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q212434 . resource:Q660755 property:P641 ?i }
ski jumping
Franz Keller participated in ski jumping
ski jumping
action filter_type
action find
entity Franz Keller
relation sport
type Olympic sport
['Franz Keller', 'sport', {'concept': 'Olympic sport'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Olympic_sport . resource:Franz_Keller property:sport ?i }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q119120
Q212434
USER
And also tell me about Didier Mollard?
(Q119120,P641,c(Q212434))
action filter_type
action find
entity Q119120
relation P641
type Q212434
['Q119120', 'P641', {'concept': 'Q212434'}]
SELECT DISTINCT ?t WHERE { resource:Q119120 property:P641 ?t . ?t rdf:type ontology:Q212434 }
Didier Mollard
action filter_type
action find
entity Didier Mollard
relation sport
type Olympic sport
['Didier Mollard', 'sport', {'concept': 'Olympic sport'}]
SELECT DISTINCT ?t WHERE { resource:Didier_Mollard property:sport ?t . ?t rdf:type ontology:Olympic_sport }
[]
Olympic sport
Q7718
SYSTEM
ski jumping
Q7718
(Q119120,P641,c(Q212434))
action filter_type
action find
entity Q119120
relation P641
type Q212434
[ANSWER]
['Q119120', 'P641', {'concept': 'Q212434'}]
SELECT DISTINCT ?t WHERE { resource:Q119120 property:P641 ?t . ?t rdf:type ontology:Q212434 }
ski jumping
ski jumping
action filter_type
action find
entity Didier Mollard
relation sport
type Olympic sport
['Didier Mollard', 'sport', {'concept': 'Olympic sport'}]
SELECT DISTINCT ?t WHERE { resource:Didier_Mollard property:sport ?t . ?t rdf:type ontology:Olympic_sport }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q119120
P21
Q290
USER
Which sex does that person belong to ?
(Q7718,P21,c(Q290))
action filter_type
action find
entity Q119120
relation P21
type Q290
['Q7718', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?a WHERE { resource:Q119120 property:P21 ?a . ?a rdf:type ontology:Q290 }
Didier Mollard
action filter_type
action find
entity Didier Mollard
relation gender
type sex
['ski jumping', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?a WHERE { resource:Didier_Mollard property:gender ?a . ?a rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q7718,P21,c(Q290))
action filter_type
action find
entity Q119120
relation P21
type Q290
That person belongs to [ANSWER]
['Q7718', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?a WHERE { resource:Q119120 property:P21 ?a . ?a rdf:type ontology:Q290 }
male
That person belongs to male
male
action filter_type
action find
entity Didier Mollard
relation gender
type sex
['ski jumping', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?a WHERE { resource:Didier_Mollard property:gender ?a . ?a rdf:type ontology:sex }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q7718
P641
Q15275719 Q476300
USER
How many recurring events and competitions are involved in playing ski jumping ?
(c(Q15275719),P641,Q7718) (c(Q476300),P641,Q7718)
action count
action union
action filter_type
action find_reverse
entity Q7718
relation P641
type Q15275719
action filter_type
action find_reverse
entity Q7718
relation P641
type Q476300
[{'concept': 'Q15275719'}, 'P641', 'Q7718'] [{'concept': 'Q476300'}, 'P641', 'Q7718']
SELECT DISTINCT ( COUNT ( ?j ) AS ?s ) WHERE { { ?j property:P641 resource:Q7718 . ?j rdf:type ontology:Q15275719 } UNION { ?j property:P641 resource:Q7718 . ?j rdf:type ontology:Q476300 } }
ski jumping
action count
action union
action filter_type
action find_reverse
entity ski jumping
relation sport
type recurring event
action filter_type
action find_reverse
entity ski jumping
relation sport
type competition
[{'concept': 'recurring event'}, 'sport', 'ski jumping'] [{'concept': 'competition'}, 'sport', 'ski jumping']
SELECT DISTINCT ( COUNT ( ?j ) AS ?s ) WHERE { { ?j property:sport resource:ski_jumping . ?j rdf:type ontology:recurring_event } UNION { ?j property:sport resource:ski_jumping . ?j rdf:type ontology:competition } }
[]
recurring event competition
SYSTEM
1 recurring events and 3 competitions
Q3271471 Q74804 Q157087 Q21995185
(c(Q15275719),P641,Q7718) (c(Q476300),P641,Q7718)
action count
action union
action filter_type
action find_reverse
entity Q7718
relation P641
type Q15275719
action filter_type
action find_reverse
entity Q7718
relation P641
type Q476300
[ANSWER]
[{'concept': 'Q15275719'}, 'P641', 'Q7718'] [{'concept': 'Q476300'}, 'P641', 'Q7718']
SELECT DISTINCT ( COUNT ( ?j ) AS ?s ) WHERE { { ?j property:P641 resource:Q7718 . ?j rdf:type ontology:Q15275719 } UNION { ?j property:P641 resource:Q7718 . ?j rdf:type ontology:Q476300 } }
Lahti Ski Games FIS Ski Jumping World Cup Four Hills Tournament 2016–17 Four Hills Tournament
1 recurring events and 3 competitions
action count
action union
action filter_type
action find_reverse
entity ski jumping
relation sport
type recurring event
action filter_type
action find_reverse
entity ski jumping
relation sport
type competition
[{'concept': 'recurring event'}, 'sport', 'ski jumping'] [{'concept': 'competition'}, 'sport', 'ski jumping']
SELECT DISTINCT ( COUNT ( ?j ) AS ?s ) WHERE { { ?j property:sport resource:ski_jumping . ?j rdf:type ontology:recurring_event } UNION { ?j property:sport resource:ski_jumping . ?j rdf:type ontology:competition } }
[]