Simple Question (Direct)
Simple Question
Q2011931
P21
Q290
USER
Which sex does Herbert Brede have ?
(Q2011931,P21,c(Q290))
action filter_type
action find
entity Q2011931
relation P21
type Q290
['Q2011931', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?r WHERE { resource:Q2011931 property:P21 ?r . ?r rdf:type ontology:Q290 }
Herbert Brede
action filter_type
action find
entity Herbert Brede
relation gender
type sex
['Herbert Brede', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?r WHERE { resource:Herbert_Brede property:gender ?r . ?r rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q2011931,P21,c(Q290))
action filter_type
action find
entity Q2011931
relation P21
type Q290
Herbert Brede has 1 [ANSWER]
['Q2011931', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?r WHERE { resource:Q2011931 property:P21 ?r . ?r rdf:type ontology:Q290 }
male
Herbert Brede has 1 male
male
action filter_type
action find
entity Herbert Brede
relation gender
type sex
['Herbert Brede', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?r WHERE { resource:Herbert_Brede property:gender ?r . ?r rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2011931
P607
Q198
USER
Which war did that person take part in ?
(Q6581097,P607,c(Q198))
action filter_type
action find
entity Q2011931
relation P607
type Q198
['Q6581097', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q198 . resource:Q2011931 property:P607 ?p }
Herbert Brede
action filter_type
action find
entity Herbert Brede
relation conflict
type war
['male', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:war . resource:Herbert_Brede property:conflict ?p }
[]
war
Q361
SYSTEM
World War I
Q361
(Q6581097,P607,c(Q198))
action filter_type
action find
entity Q2011931
relation P607
type Q198
That person took part in [ANSWER]
['Q6581097', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q198 . resource:Q2011931 property:P607 ?p }
World War I
That person took part in World War I
World War I
action filter_type
action find
entity Herbert Brede
relation conflict
type war
['male', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:war . resource:Herbert_Brede property:conflict ?p }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments do max number of people know to play ?
(c(Q502895),P1303,Q3623688)
action argmax
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
[{'concept': 'Q502895'}, 'P1303', 'Q3623688']
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( MAX ( ?k ) AS ?b ) { SELECT DISTINCT ?s ( COUNT ( ?d ) AS ?k ) WHERE { ?d property:P1303 ?s . ?s rdf:type ontology:Q34379 . ?d rdf:type ontology:Q502895 } GROUP BY ?s } } . { SELECT DISTINCT ?c ( COUNT ( ?t ) AS ?v ) WHERE { ?c rdf:type ontology:Q34379 . ?t rdf:type ontology:Q502895 . ?t property:P1303 ?c } GROUP BY ?c } . FILTER ( ?v = ?b ) }
action argmax
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
[{'concept': 'common name'}, 'instrument', 'Paraguayan harp']
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( MAX ( ?k ) AS ?b ) { SELECT DISTINCT ?s ( COUNT ( ?d ) AS ?k ) WHERE { ?d property:instrument ?s . ?s rdf:type ontology:musical_instrument . ?d rdf:type ontology:common_name } GROUP BY ?s } } . { SELECT DISTINCT ?c ( COUNT ( ?t ) AS ?v ) WHERE { ?c rdf:type ontology:musical_instrument . ?t rdf:type ontology:common_name . ?t property:instrument ?c } GROUP BY ?c } . FILTER ( ?v = ?b ) }
[]
musical instrument common name
Q5994
SYSTEM
piano
Q5994
(c(Q502895),P1303,Q3623688)
action argmax
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
Max number of people know how [ANSWER]
[{'concept': 'Q502895'}, 'P1303', 'Q3623688']
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( MAX ( ?k ) AS ?b ) { SELECT DISTINCT ?s ( COUNT ( ?d ) AS ?k ) WHERE { ?d property:P1303 ?s . ?s rdf:type ontology:Q34379 . ?d rdf:type ontology:Q502895 } GROUP BY ?s } } . { SELECT DISTINCT ?c ( COUNT ( ?t ) AS ?v ) WHERE { ?c rdf:type ontology:Q34379 . ?t rdf:type ontology:Q502895 . ?t property:P1303 ?c } GROUP BY ?c } . FILTER ( ?v = ?b ) }
piano
Max number of people know how piano
piano
action argmax
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
[{'concept': 'common name'}, 'instrument', 'Paraguayan harp']
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( MAX ( ?k ) AS ?b ) { SELECT DISTINCT ?s ( COUNT ( ?d ) AS ?k ) WHERE { ?d property:instrument ?s . ?s rdf:type ontology:musical_instrument . ?d rdf:type ontology:common_name } GROUP BY ?s } } . { SELECT DISTINCT ?c ( COUNT ( ?t ) AS ?v ) WHERE { ?c rdf:type ontology:musical_instrument . ?t rdf:type ontology:common_name . ?t property:instrument ?c } GROUP BY ?c } . FILTER ( ?v = ?b ) }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q5994 Q301597 Q21062100
P61
Q502895
USER
Was piano invented or discovered by Bartolomeo Cristofori and Thomas Turner ?
(Q5994,P61,Q301597) (Q5994,P61,Q21062100)
action is_in
entity Q5994
action intersection
action find_reverse
entity Q301597
relation P61
action find_reverse
entity Q21062100
relation P61
['Q5994', 'P61', 'Q301597'] ['Q5994', 'P61', 'Q21062100']
ASK WHERE { resource:Q5994 property:P61 resource:Q301597 . resource:Q5994 property:P61 resource:Q21062100 }
piano Bartolomeo Cristofori Thomas Turner
action is_in
entity piano
action intersection
action find_reverse
entity Bartolomeo Cristofori
relation discoverer or inventor
action find_reverse
entity Thomas Turner
relation discoverer or inventor
['piano', 'discoverer or inventor', 'Bartolomeo Cristofori'] ['piano', 'discoverer or inventor', 'Thomas Turner']
ASK WHERE { resource:piano property:discoverer_or_inventor resource:Bartolomeo_Cristofori . resource:piano property:discoverer_or_inventor resource:Thomas_Turner }
[]
common name
SYSTEM
YES and NO respectively
(Q5994,P61,Q301597) (Q5994,P61,Q21062100)
action is_in
entity Q5994
action intersection
action find_reverse
entity Q301597
relation P61
action find_reverse
entity Q21062100
relation P61
[ANSWER]
['Q5994', 'P61', 'Q301597'] ['Q5994', 'P61', 'Q21062100']
ASK WHERE { resource:Q5994 property:P61 resource:Q301597 . resource:Q5994 property:P61 resource:Q21062100 }
YES and NO respectively
action is_in
entity piano
action intersection
action find_reverse
entity Bartolomeo Cristofori
relation discoverer or inventor
action find_reverse
entity Thomas Turner
relation discoverer or inventor
['piano', 'discoverer or inventor', 'Bartolomeo Cristofori'] ['piano', 'discoverer or inventor', 'Thomas Turner']
ASK WHERE { resource:piano property:discoverer_or_inventor resource:Bartolomeo_Cristofori . resource:piano property:discoverer_or_inventor resource:Thomas_Turner }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q361 Q156554
P607
Q2235308
USER
How many ship types did World War I and Battle of Jutland participate in ?
(c(Q2235308),P607,Q361) (c(Q2235308),P607,Q156554)
action count
action intersection
action filter_type
action find_reverse
entity Q361
relation P607
type Q2235308
action filter_type
action find_reverse
entity Q156554
relation P607
type Q2235308
[{'concept': 'Q2235308'}, 'P607', 'Q361'] [{'concept': 'Q2235308'}, 'P607', 'Q156554']
SELECT DISTINCT ( COUNT ( ?e ) AS ?s ) WHERE { ?e property:P607 resource:Q361 . ?e rdf:type ontology:Q2235308 . ?e property:P607 resource:Q156554 . ?e rdf:type ontology:Q2235308 }
World War I Battle of Jutland
action count
action intersection
action filter_type
action find_reverse
entity World War I
relation conflict
type ship type
action filter_type
action find_reverse
entity Battle of Jutland
relation conflict
type ship type
[{'concept': 'ship type'}, 'conflict', 'World War I'] [{'concept': 'ship type'}, 'conflict', 'Battle of Jutland']
SELECT DISTINCT ( COUNT ( ?e ) AS ?s ) WHERE { ?e property:conflict resource:World_War_I . ?e rdf:type ontology:ship_type . ?e property:conflict resource:Battle_of_Jutland . ?e rdf:type ontology:ship_type }
[]
ship type
SYSTEM
2
Q1032042 Q340193
(c(Q2235308),P607,Q361) (c(Q2235308),P607,Q156554)
action count
action intersection
action filter_type
action find_reverse
entity Q361
relation P607
type Q2235308
action filter_type
action find_reverse
entity Q156554
relation P607
type Q2235308
[ANSWER]
[{'concept': 'Q2235308'}, 'P607', 'Q361'] [{'concept': 'Q2235308'}, 'P607', 'Q156554']
SELECT DISTINCT ( COUNT ( ?e ) AS ?s ) WHERE { ?e property:P607 resource:Q361 . ?e rdf:type ontology:Q2235308 . ?e property:P607 resource:Q156554 . ?e rdf:type ontology:Q2235308 }
HMS Indefatigable HMS Defence
2
action count
action intersection
action filter_type
action find_reverse
entity World War I
relation conflict
type ship type
action filter_type
action find_reverse
entity Battle of Jutland
relation conflict
type ship type
[{'concept': 'ship type'}, 'conflict', 'World War I'] [{'concept': 'ship type'}, 'conflict', 'Battle of Jutland']
SELECT DISTINCT ( COUNT ( ?e ) AS ?s ) WHERE { ?e property:conflict resource:World_War_I . ?e rdf:type ontology:ship_type . ?e property:conflict resource:Battle_of_Jutland . ?e rdf:type ontology:ship_type }
[]