Simple Question (Direct)
Simple Question
Q1969034
P462
Q1075
USER
Which color is Northern Dancer associated with ?
(Q1969034,P462,c(Q1075))
action filter_type
action find
entity Q1969034
relation P462
type Q1075
['Q1969034', 'P462', {'concept': 'Q1075'}]
SELECT DISTINCT ?a WHERE { resource:Q1969034 property:P462 ?a . ?a rdf:type ontology:Q1075 }
Northern Dancer
action filter_type
action find
entity Northern Dancer
relation color
type color
['Northern Dancer', 'color', {'concept': 'color'}]
SELECT DISTINCT ?a WHERE { resource:Northern_Dancer property:color ?a . ?a rdf:type ontology:color }
[]
color
Q900906
SYSTEM
bay
Q900906
(Q1969034,P462,c(Q1075))
action filter_type
action find
entity Q1969034
relation P462
type Q1075
Northern Dancer is associated with [ANSWER]
['Q1969034', 'P462', {'concept': 'Q1075'}]
SELECT DISTINCT ?a WHERE { resource:Q1969034 property:P462 ?a . ?a rdf:type ontology:Q1075 }
bay
Northern Dancer is associated with bay
bay
action filter_type
action find
entity Northern Dancer
relation color
type color
['Northern Dancer', 'color', {'concept': 'color'}]
SELECT DISTINCT ?a WHERE { resource:Northern_Dancer property:color ?a . ?a rdf:type ontology:color }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1969034
P22
Q3745054
USER
Which horse breed was the father of that one ?
(Q900906,P22,c(Q3745054))
action filter_type
action find
entity Q1969034
relation P22
type Q3745054
['Q900906', 'P22', {'concept': 'Q3745054'}]
SELECT DISTINCT ?k WHERE { resource:Q1969034 property:P22 ?k . ?k rdf:type ontology:Q3745054 }
Northern Dancer
action filter_type
action find
entity Northern Dancer
relation father
type horse breed
['bay', 'father', {'concept': 'horse breed'}]
SELECT DISTINCT ?k WHERE { resource:Northern_Dancer property:father ?k . ?k rdf:type ontology:horse_breed }
[]
horse breed
Q3307189
SYSTEM
Nearctic
Q3307189
(Q900906,P22,c(Q3745054))
action filter_type
action find
entity Q1969034
relation P22
type Q3745054
The [ANSWER] was the father of that one
['Q900906', 'P22', {'concept': 'Q3745054'}]
SELECT DISTINCT ?k WHERE { resource:Q1969034 property:P22 ?k . ?k rdf:type ontology:Q3745054 }
Nearctic
The Nearctic was the father of that one
Nearctic
action filter_type
action find
entity Northern Dancer
relation father
type horse breed
['bay', 'father', {'concept': 'horse breed'}]
SELECT DISTINCT ?k WHERE { resource:Northern_Dancer property:father ?k . ?k rdf:type ontology:horse_breed }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P180
Q1075 Q15709879 Q838948
USER
Which colors are depicted in max number of artwork series or works of art ?
(c(Q15709879)|c(Q838948),P180,c(Q1075))
action argmax
action union
action find_reverse_tuple_counts
relation P180
type Q1075
type Q15709879
action find_reverse_tuple_counts
relation P180
type Q1075
type Q838948
[[{'concept': 'Q15709879'}, {'concept': 'Q838948'}], 'P180', {'concept': 'Q1075'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?c ) AS ?u ) { SELECT DISTINCT ( COUNT ( ?f ) AS ?c ) ?t WHERE { VALUES ( ?k ) { ( ontology:Q15709879 ) ( ontology:Q838948 ) } . ?f rdf:type ?k } GROUP BY ?t } } . FILTER ( ?e = ?u ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?e ) ?p WHERE { { ?s property:P180 ?p . ?p rdf:type ontology:Q1075 . ?s rdf:type ontology:Q838948 } UNION { ?s property:P180 ?p . ?p rdf:type ontology:Q1075 . ?s rdf:type ontology:Q15709879 } } GROUP BY ?p } }
action argmax
action union
action find_reverse_tuple_counts
relation depicts
type color
type artwork series
action find_reverse_tuple_counts
relation depicts
type color
type work of art
[[{'concept': 'artwork series'}, {'concept': 'work of art'}], 'depicts', {'concept': 'color'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?c ) AS ?u ) { SELECT DISTINCT ( COUNT ( ?f ) AS ?c ) ?t WHERE { VALUES ( ?k ) { ( ontology:artwork_series ) ( ontology:work_of_art ) } . ?f rdf:type ?k } GROUP BY ?t } } . FILTER ( ?e = ?u ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?e ) ?p WHERE { { ?s property:depicts ?p . ?p rdf:type ontology:color . ?s rdf:type ontology:work_of_art } UNION { ?s property:depicts ?p . ?p rdf:type ontology:color . ?s rdf:type ontology:artwork_series } } GROUP BY ?p } }
[]
color artwork series work of art
Q202466 Q1922956
SYSTEM
blonde, black hair
Q202466 Q1922956
(c(Q15709879)|c(Q838948),P180,c(Q1075))
action argmax
action union
action find_reverse_tuple_counts
relation P180
type Q1075
type Q15709879
action find_reverse_tuple_counts
relation P180
type Q1075
type Q838948
[ANSWERS] are depicted in max number of artwork series or works of art
[[{'concept': 'Q15709879'}, {'concept': 'Q838948'}], 'P180', {'concept': 'Q1075'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?c ) AS ?u ) { SELECT DISTINCT ( COUNT ( ?f ) AS ?c ) ?t WHERE { VALUES ( ?k ) { ( ontology:Q15709879 ) ( ontology:Q838948 ) } . ?f rdf:type ?k } GROUP BY ?t } } . FILTER ( ?e = ?u ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?e ) ?p WHERE { { ?s property:P180 ?p . ?p rdf:type ontology:Q1075 . ?s rdf:type ontology:Q838948 } UNION { ?s property:P180 ?p . ?p rdf:type ontology:Q1075 . ?s rdf:type ontology:Q15709879 } } GROUP BY ?p } }
blonde black hair
Blonde and black hair are depicted in max number of artwork series or works of art
blonde black hair
action argmax
action union
action find_reverse_tuple_counts
relation depicts
type color
type artwork series
action find_reverse_tuple_counts
relation depicts
type color
type work of art
[[{'concept': 'artwork series'}, {'concept': 'work of art'}], 'depicts', {'concept': 'color'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?c ) AS ?u ) { SELECT DISTINCT ( COUNT ( ?f ) AS ?c ) ?t WHERE { VALUES ( ?k ) { ( ontology:artwork_series ) ( ontology:work_of_art ) } . ?f rdf:type ?k } GROUP BY ?t } } . FILTER ( ?e = ?u ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?e ) ?p WHERE { { ?s property:depicts ?p . ?p rdf:type ontology:color . ?s rdf:type ontology:work_of_art } UNION { ?s property:depicts ?p . ?p rdf:type ontology:color . ?s rdf:type ontology:artwork_series } } GROUP BY ?p } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q6933946
P1884
Q1075 Q95074 Q502895
USER
How many colors are associated with hair of more number of fictional characters and people than white hair ?
(c(Q95074)|c(Q502895),P1884,c(Q1075))
action count
action greater
action union
action find_reverse_tuple_counts
relation P1884
type Q1075
type Q95074
action find_reverse_tuple_counts
relation P1884
type Q1075
type Q502895
action count
action filter_multi_types
action find_reverse
entity Q6933946
relation P1884
type Q95074
type Q502895
[[{'concept': 'Q95074'}, {'concept': 'Q502895'}], 'P1884', {'concept': 'Q1075'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?y ) ?o WHERE { { ?h property:P1884 ?o . ?o rdf:type ontology:Q1075 . ?h rdf:type ontology:Q502895 } UNION { ?h property:P1884 ?o . ?o rdf:type ontology:Q1075 . ?h rdf:type ontology:Q95074 } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?m ) WHERE { ?d property:P1884 resource:Q6933946 . { { ?d rdf:type ontology:Q95074 } UNION { ?d rdf:type ontology:Q502895 } } } } . FILTER ( ?y > ?m ) }
white hair
action count
action greater
action union
action find_reverse_tuple_counts
relation hair color
type color
type fictional character
action find_reverse_tuple_counts
relation hair color
type color
type common name
action count
action filter_multi_types
action find_reverse
entity white hair
relation hair color
type fictional character
type common name
[[{'concept': 'fictional character'}, {'concept': 'common name'}], 'hair color', {'concept': 'color'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?y ) ?o WHERE { { ?h property:hair_color ?o . ?o rdf:type ontology:color . ?h rdf:type ontology:common_name } UNION { ?h property:hair_color ?o . ?o rdf:type ontology:color . ?h rdf:type ontology:fictional_character } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?m ) WHERE { ?d property:hair_color resource:white_hair . { { ?d rdf:type ontology:fictional_character } UNION { ?d rdf:type ontology:common_name } } } } . FILTER ( ?y > ?m ) }
[]
color fictional character common name
SYSTEM
5
Q2367101 Q202466 Q5094009 Q1922956 Q152357
(c(Q95074)|c(Q502895),P1884,c(Q1075))
action count
action greater
action union
action find_reverse_tuple_counts
relation P1884
type Q1075
type Q95074
action find_reverse_tuple_counts
relation P1884
type Q1075
type Q502895
action count
action filter_multi_types
action find_reverse
entity Q6933946
relation P1884
type Q95074
type Q502895
[ANSWER]
[[{'concept': 'Q95074'}, {'concept': 'Q502895'}], 'P1884', {'concept': 'Q1075'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?y ) ?o WHERE { { ?h property:P1884 ?o . ?o rdf:type ontology:Q1075 . ?h rdf:type ontology:Q502895 } UNION { ?h property:P1884 ?o . ?o rdf:type ontology:Q1075 . ?h rdf:type ontology:Q95074 } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?m ) WHERE { ?d property:P1884 resource:Q6933946 . { { ?d rdf:type ontology:Q95074 } UNION { ?d rdf:type ontology:Q502895 } } } } . FILTER ( ?y > ?m ) }
brown hair blonde chestnut hair black hair red hair
5
action count
action greater
action union
action find_reverse_tuple_counts
relation hair color
type color
type fictional character
action find_reverse_tuple_counts
relation hair color
type color
type common name
action count
action filter_multi_types
action find_reverse
entity white hair
relation hair color
type fictional character
type common name
[[{'concept': 'fictional character'}, {'concept': 'common name'}], 'hair color', {'concept': 'color'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?y ) ?o WHERE { { ?h property:hair_color ?o . ?o rdf:type ontology:color . ?h rdf:type ontology:common_name } UNION { ?h property:hair_color ?o . ?o rdf:type ontology:color . ?h rdf:type ontology:fictional_character } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?m ) WHERE { ?d property:hair_color resource:white_hair . { { ?d rdf:type ontology:fictional_character } UNION { ?d rdf:type ontology:common_name } } } } . FILTER ( ?y > ?m ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q202466 Q27790873
P1884
Q95074
USER
How many fictional characters have blonde or purple colored hair ?
(c(Q95074),P1884,Q202466) (c(Q95074),P1884,Q27790873)
action count
action union
action filter_type
action find_reverse
entity Q202466
relation P1884
type Q95074
action filter_type
action find_reverse
entity Q27790873
relation P1884
type Q95074
[{'concept': 'Q95074'}, 'P1884', 'Q202466'] [{'concept': 'Q95074'}, 'P1884', 'Q27790873']
SELECT DISTINCT ( COUNT ( ?r ) AS ?a ) WHERE { { ?r property:P1884 resource:Q202466 . ?r rdf:type ontology:Q95074 } UNION { ?r property:P1884 resource:Q27790873 . ?r rdf:type ontology:Q95074 } }
blonde purple
action count
action union
action filter_type
action find_reverse
entity blonde
relation hair color
type fictional character
action filter_type
action find_reverse
entity purple
relation hair color
type fictional character
[{'concept': 'fictional character'}, 'hair color', 'blonde'] [{'concept': 'fictional character'}, 'hair color', 'purple']
SELECT DISTINCT ( COUNT ( ?r ) AS ?a ) WHERE { { ?r property:hair_color resource:blonde . ?r rdf:type ontology:fictional_character } UNION { ?r property:hair_color resource:purple . ?r rdf:type ontology:fictional_character } }
[]
fictional character
SYSTEM
30
Q27702890 Q27666118 Q27230151 Q27599048 Q4767744 Q27702918 Q27180048 Q112310 Q27607146 Q22264381 Q128138 Q23542206 Q27607308 Q27455598 Q27607466 Q27068028 Q27468422 Q519034 Q23014030 Q27145361 Q27663642 Q27553997 Q27666216 Q27680636 Q3073552 Q27666112 Q26299466 Q2344068 Q27467127 Q1269082
(c(Q95074),P1884,Q202466) (c(Q95074),P1884,Q27790873)
action count
action union
action filter_type
action find_reverse
entity Q202466
relation P1884
type Q95074
action filter_type
action find_reverse
entity Q27790873
relation P1884
type Q95074
[ANSWER]
[{'concept': 'Q95074'}, 'P1884', 'Q202466'] [{'concept': 'Q95074'}, 'P1884', 'Q27790873']
SELECT DISTINCT ( COUNT ( ?r ) AS ?a ) WHERE { { ?r property:P1884 resource:Q202466 . ?r rdf:type ontology:Q95074 } UNION { ?r property:P1884 resource:Q27790873 . ?r rdf:type ontology:Q95074 } }
Phoebus Michael Darling Flaps Chip Annabeth Schott Pierre Gringoire Arthur Alice (Disney) Claudette Barbarella Andrea Taylor Wethersby Laurette Eilonwy Paulette The blue fairy March Hare Aurora Ainsley Hayes Roger Radcliffe Wendy Darling Cody Tinker Bell John Smith Fleur-de-Lys Mary Darling Pain Madam Mim Alice Alice
30
action count
action union
action filter_type
action find_reverse
entity blonde
relation hair color
type fictional character
action filter_type
action find_reverse
entity purple
relation hair color
type fictional character
[{'concept': 'fictional character'}, 'hair color', 'blonde'] [{'concept': 'fictional character'}, 'hair color', 'purple']
SELECT DISTINCT ( COUNT ( ?r ) AS ?a ) WHERE { { ?r property:hair_color resource:blonde . ?r rdf:type ontology:fictional_character } UNION { ?r property:hair_color resource:purple . ?r rdf:type ontology:fictional_character } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3307189
P40
Q3745054
USER
Who has Nearctic as a child ?
(c(Q3745054),P40,Q3307189)
action filter_type
action find_reverse
entity Q3307189
relation P40
type Q3745054
[{'concept': 'Q3745054'}, 'P40', 'Q3307189']
SELECT DISTINCT ?v WHERE { ?v property:P40 resource:Q3307189 . ?v rdf:type ontology:Q3745054 }
Nearctic
action filter_type
action find_reverse
entity Nearctic
relation child
type horse breed
[{'concept': 'horse breed'}, 'child', 'Nearctic']
SELECT DISTINCT ?v WHERE { ?v property:child resource:Nearctic . ?v rdf:type ontology:horse_breed }
[]
horse breed
Q2305063
SYSTEM
Nearco
Q2305063
(c(Q3745054),P40,Q3307189)
action filter_type
action find_reverse
entity Q3307189
relation P40
type Q3745054
Has [ANSWER] has Nearctic as a child
[{'concept': 'Q3745054'}, 'P40', 'Q3307189']
SELECT DISTINCT ?v WHERE { ?v property:P40 resource:Q3307189 . ?v rdf:type ontology:Q3745054 }
Nearco
Has Nearco has Nearctic as a child
Nearco
action filter_type
action find_reverse
entity Nearctic
relation child
type horse breed
[{'concept': 'horse breed'}, 'child', 'Nearctic']
SELECT DISTINCT ?v WHERE { ?v property:child resource:Nearctic . ?v rdf:type ontology:horse_breed }
[]