Simple Question (Direct)
Simple Question
Q172678
P1411
Q4220917
USER
Which film award did Samuel L. Jackson receive ?
(Q172678,P1411,c(Q4220917))
action filter_type
action find
entity Q172678
relation P1411
type Q4220917
['Q172678', 'P1411', {'concept': 'Q4220917'}]
SELECT DISTINCT ?g WHERE { resource:Q172678 property:P1411 ?g . ?g rdf:type ontology:Q4220917 }
Samuel L. Jackson
action filter_type
action find
entity Samuel L. Jackson
relation nominated for
type film award
['Samuel L. Jackson', 'nominated for', {'concept': 'film award'}]
SELECT DISTINCT ?g WHERE { resource:Samuel_L._Jackson property:nominated_for ?g . ?g rdf:type ontology:film_award }
[]
film award
Q106291
SYSTEM
Academy Award for Best Supporting Actor
Q106291
(Q172678,P1411,c(Q4220917))
action filter_type
action find
entity Q172678
relation P1411
type Q4220917
Samuel L. Jackson received the [ANSWER]
['Q172678', 'P1411', {'concept': 'Q4220917'}]
SELECT DISTINCT ?g WHERE { resource:Q172678 property:P1411 ?g . ?g rdf:type ontology:Q4220917 }
Academy Award for Best Supporting Actor
Samuel L. Jackson received the Academy Award for Best Supporting Actor
Academy Award for Best Supporting Actor
action filter_type
action find
entity Samuel L. Jackson
relation nominated for
type film award
['Samuel L. Jackson', 'nominated for', {'concept': 'film award'}]
SELECT DISTINCT ?g WHERE { resource:Samuel_L._Jackson property:nominated_for ?g . ?g rdf:type ontology:film_award }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q172678
P162
Q838948
USER
Which works of art created Samuel L. Jackson ?
(c(Q838948),P162,Q172678)
action filter_type
action find_reverse
entity Q172678
relation P162
type Q838948
[{'concept': 'Q838948'}, 'P162', 'Q172678']
SELECT DISTINCT ?n WHERE { ?n property:P162 resource:Q172678 . ?n rdf:type ontology:Q838948 }
Samuel L. Jackson
action filter_type
action find_reverse
entity Samuel L. Jackson
relation producer
type work of art
[{'concept': 'work of art'}, 'producer', 'Samuel L. Jackson']
SELECT DISTINCT ?n WHERE { ?n property:producer resource:Samuel_L._Jackson . ?n rdf:type ontology:work_of_art }
[]
work of art
Q3284333 Q2690192
SYSTEM
Eve's Bayou, Fury
Q3284333 Q2690192
(c(Q838948),P162,Q172678)
action filter_type
action find_reverse
entity Q172678
relation P162
type Q838948
[ANSWERS] created Samuel L. Jackson
[{'concept': 'Q838948'}, 'P162', 'Q172678']
SELECT DISTINCT ?n WHERE { ?n property:P162 resource:Q172678 . ?n rdf:type ontology:Q838948 }
Eve's Bayou Fury
Eve's Bayou and Fury created Samuel L. Jackson
Eve's Bayou Fury
action filter_type
action find_reverse
entity Samuel L. Jackson
relation producer
type work of art
[{'concept': 'work of art'}, 'producer', 'Samuel L. Jackson']
SELECT DISTINCT ?n WHERE { ?n property:producer resource:Samuel_L._Jackson . ?n rdf:type ontology:work_of_art }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q172678
P26
Q502895
USER
Which person is the life partner of Samuel L. Jackson ?
(c(Q502895),P26,Q172678)
action filter_type
action find
entity Q172678
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q172678']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q502895 . resource:Q172678 property:P26 ?o }
Samuel L. Jackson
action filter_type
action find
entity Samuel L. Jackson
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Samuel L. Jackson']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:common_name . resource:Samuel_L._Jackson property:spouse ?o }
[]
common name
Q441634
SYSTEM
LaTanya Richardson
Q441634
(c(Q502895),P26,Q172678)
action filter_type
action find
entity Q172678
relation P26
type Q502895
[ANSWER] is the life partner of Samuel L. Jackson
[{'concept': 'Q502895'}, 'P26', 'Q172678']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q502895 . resource:Q172678 property:P26 ?o }
LaTanya Richardson
LaTanya Richardson is the life partner of Samuel L. Jackson
LaTanya Richardson
action filter_type
action find
entity Samuel L. Jackson
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Samuel L. Jackson']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:common_name . resource:Samuel_L._Jackson property:spouse ?o }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q441634
P27
Q15617994
USER
Which administrative territory is the native country of that person ?
(Q441634,P27,c(Q15617994))
action filter_type
action find
entity Q441634
relation P27
type Q15617994
['Q441634', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { resource:Q441634 property:P27 ?s . ?s rdf:type ontology:Q15617994 }
LaTanya Richardson
action filter_type
action find
entity LaTanya Richardson
relation country of citizenship
type designation for an administrative territorial entity
['LaTanya Richardson', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:LaTanya_Richardson property:country_of_citizenship ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q441634,P27,c(Q15617994))
action filter_type
action find
entity Q441634
relation P27
type Q15617994
The [ANSWER] is the native country of that person
['Q441634', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { resource:Q441634 property:P27 ?s . ?s rdf:type ontology:Q15617994 }
United States of America
The United States of America is the native country of that person
United States of America
action filter_type
action find
entity LaTanya Richardson
relation country of citizenship
type designation for an administrative territorial entity
['LaTanya Richardson', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:LaTanya_Richardson property:country_of_citizenship ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q16
P530
Q15617994 Q1048835
USER
Which political territories have diplomatic relations with greater number of administrative territories than Canada ?
(c(Q1048835),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q16
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?t ) AS ?f ) WHERE { ?c property:P530 ?t . ?t rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q1048835 } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?j ) WHERE { ?s rdf:type ontology:Q1048835 . resource:Q16 property:P530 ?s } } . FILTER ( ?f > ?j ) }
Canada
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Canada
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?t ) AS ?f ) WHERE { ?c property:diplomatic_relation ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:political_territorial_entity } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?j ) WHERE { ?s rdf:type ontology:political_territorial_entity . resource:Canada property:diplomatic_relation ?s } } . FILTER ( ?f > ?j ) }
[]
designation for an administrative territorial entity political territorial entity
Q183 Q408
SYSTEM
Germany, Australia
Q183 Q408
(c(Q1048835),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q16
relation P530
type Q1048835
[ANSWERS] have diplomatic relations with greater number of administrative territories than Canada
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?t ) AS ?f ) WHERE { ?c property:P530 ?t . ?t rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q1048835 } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?j ) WHERE { ?s rdf:type ontology:Q1048835 . resource:Q16 property:P530 ?s } } . FILTER ( ?f > ?j ) }
Germany Australia
Germany and Australia have diplomatic relations with greater number of administrative territories than Canada
Germany Australia
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Canada
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?t ) AS ?f ) WHERE { ?c property:diplomatic_relation ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:political_territorial_entity } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?j ) WHERE { ?s rdf:type ontology:political_territorial_entity . resource:Canada property:diplomatic_relation ?s } } . FILTER ( ?f > ?j ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q183
P47
Q1048835
USER
Which political territories do Germany share a border with ?
(c(Q1048835),P47,Q183)
action filter_type
action find_reverse
entity Q183
relation P47
type Q1048835
[{'concept': 'Q1048835'}, 'P47', 'Q183']
SELECT DISTINCT ?x WHERE { ?x property:P47 resource:Q183 . ?x rdf:type ontology:Q1048835 }
Germany
action filter_type
action find_reverse
entity Germany
relation shares border with
type political territorial entity
[{'concept': 'political territorial entity'}, 'shares border with', 'Germany']
SELECT DISTINCT ?x WHERE { ?x property:shares_border_with resource:Germany . ?x rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q35 Q40 Q13116
SYSTEM
Denmark, Austria, Benelux
Q13116 Q40 Q35 Q191091
(c(Q1048835),P47,Q183)
action filter_type
action find_reverse
entity Q183
relation P47
type Q1048835
Germany share a border with [ANSWERS]
[{'concept': 'Q1048835'}, 'P47', 'Q183']
SELECT DISTINCT ?x WHERE { ?x property:P47 resource:Q183 . ?x rdf:type ontology:Q1048835 }
Benelux Austria Denmark Karlovy Vary Region
Germany share a border with Denmark, Austria and Benelux
Denmark Austria Benelux
action filter_type
action find_reverse
entity Germany
relation shares border with
type political territorial entity
[{'concept': 'political territorial entity'}, 'shares border with', 'Germany']
SELECT DISTINCT ?x WHERE { ?x property:shares_border_with resource:Germany . ?x rdf:type ontology:political_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q40
P937
Q502895
USER
Which people have that political territory as work location ?
(c(Q502895),P937,Q40)
action filter_type
action find_reverse
entity Q40
relation P937
type Q502895
[{'concept': 'Q502895'}, 'P937', 'Q40']
SELECT DISTINCT ?k WHERE { ?k property:P937 resource:Q40 . ?k rdf:type ontology:Q502895 }
Austria
action filter_type
action find_reverse
entity Austria
relation work location
type common name
[{'concept': 'common name'}, 'work location', 'Austria']
SELECT DISTINCT ?k WHERE { ?k property:work_location resource:Austria . ?k rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q13116
SYSTEM
Did you mean Benelux ?
Q35 Q40 Q13116
(c(Q502895),P937,Q35) (c(Q502895),P937,Q40) (c(Q502895),P937,Q13116)
[ANSWER]
[{'concept': 'Q502895'}, 'P937', 'Q35'] [{'concept': 'Q502895'}, 'P937', 'Q40'] [{'concept': 'Q502895'}, 'P937', 'Q13116']
SELECT DISTINCT ?k WHERE { ?k property:P937 resource:Q40 . ?k rdf:type ontology:Q502895 }
Denmark Austria Benelux
Did you mean Benelux ?
Benelux
[{'concept': 'common name'}, 'work location', 'Denmark'] [{'concept': 'common name'}, 'work location', 'Austria'] [{'concept': 'common name'}, 'work location', 'Benelux']
SELECT DISTINCT ?k WHERE { ?k property:work_location resource:Austria . ?k rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Austria. Could you tell me the answer for that?
(c(Q502895),P937,Q40)
Q40
[{'concept': 'Q502895'}, 'P937', 'Q40']
[{'concept': 'common name'}, 'work location', 'Austria']
[]
Q113581 Q22133416 Q261389
SYSTEM
Conchita Wurst, Jennifer Lacey, Princess Isabella of Croÿ
Q113581 Q261389 Q345771 Q874606 Q22133416 Q90201
(c(Q502895),P937,Q40)
action filter_type
action find_reverse
entity Q40
relation P937
type Q502895
[ANSWERS] have that political territory as work location
[{'concept': 'Q502895'}, 'P937', 'Q40']
SELECT DISTINCT ?k WHERE { ?k property:P937 resource:Q40 . ?k rdf:type ontology:Q502895 }
Conchita Wurst Princess Isabella of Croÿ Joshua Sinclair Otto Friedrich Jennifer Lacey Boris Brainin
Conchita Wurst, Jennifer Lacey and Princess Isabella of Croÿ have that political territory as work location
Conchita Wurst Jennifer Lacey Princess Isabella of Croÿ
action filter_type
action find_reverse
entity Austria
relation work location
type common name
[{'concept': 'common name'}, 'work location', 'Austria']
SELECT DISTINCT ?k WHERE { ?k property:work_location resource:Austria . ?k rdf:type ontology:common_name }
[]
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 ?f WHERE { FILTER ( ?w = ?j ) . { SELECT DISTINCT ?f ( COUNT ( ?a ) AS ?w ) WHERE { ?f rdf:type ontology:Q34379 . ?a rdf:type ontology:Q502895 . ?a property:P1303 ?f } GROUP BY ?f } . { SELECT DISTINCT ( MAX ( ?p ) AS ?j ) { SELECT DISTINCT ?o ( COUNT ( ?v ) AS ?p ) WHERE { ?o rdf:type ontology:Q34379 . ?v rdf:type ontology:Q502895 . ?v property:P1303 ?o } GROUP BY ?o } } }
action argmax
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
[{'concept': 'common name'}, 'instrument', 'Paraguayan harp']
SELECT DISTINCT ?f WHERE { FILTER ( ?w = ?j ) . { SELECT DISTINCT ?f ( COUNT ( ?a ) AS ?w ) WHERE { ?f rdf:type ontology:musical_instrument . ?a rdf:type ontology:common_name . ?a property:instrument ?f } GROUP BY ?f } . { SELECT DISTINCT ( MAX ( ?p ) AS ?j ) { SELECT DISTINCT ?o ( COUNT ( ?v ) AS ?p ) WHERE { ?o rdf:type ontology:musical_instrument . ?v rdf:type ontology:common_name . ?v property:instrument ?o } GROUP BY ?o } } }
[]
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 ?f WHERE { FILTER ( ?w = ?j ) . { SELECT DISTINCT ?f ( COUNT ( ?a ) AS ?w ) WHERE { ?f rdf:type ontology:Q34379 . ?a rdf:type ontology:Q502895 . ?a property:P1303 ?f } GROUP BY ?f } . { SELECT DISTINCT ( MAX ( ?p ) AS ?j ) { SELECT DISTINCT ?o ( COUNT ( ?v ) AS ?p ) WHERE { ?o rdf:type ontology:Q34379 . ?v rdf:type ontology:Q502895 . ?v property:P1303 ?o } GROUP BY ?o } } }
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 ?f WHERE { FILTER ( ?w = ?j ) . { SELECT DISTINCT ?f ( COUNT ( ?a ) AS ?w ) WHERE { ?f rdf:type ontology:musical_instrument . ?a rdf:type ontology:common_name . ?a property:instrument ?f } GROUP BY ?f } . { SELECT DISTINCT ( MAX ( ?p ) AS ?j ) { SELECT DISTINCT ?o ( COUNT ( ?v ) AS ?p ) WHERE { ?o rdf:type ontology:musical_instrument . ?v rdf:type ontology:common_name . ?v property:instrument ?o } GROUP BY ?o } } }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q5994 Q301597
P61
Q502895
USER
Did Bartolomeo Cristofori discover or invented that musical instrument ?
(Q5994,P61,Q301597)
action is_in
entity Q301597
action find
entity Q5994
relation P61
['Q5994', 'P61', 'Q301597']
ASK WHERE { resource:Q5994 property:P61 resource:Q301597 }
piano Bartolomeo Cristofori
action is_in
entity Bartolomeo Cristofori
action find
entity piano
relation discoverer or inventor
['piano', 'discoverer or inventor', 'Bartolomeo Cristofori']
ASK WHERE { resource:piano property:discoverer_or_inventor resource:Bartolomeo_Cristofori }
[]
common name
SYSTEM
YES
(Q5994,P61,Q301597)
action is_in
entity Q301597
action find
entity Q5994
relation P61
[ANSWER]
['Q5994', 'P61', 'Q301597']
ASK WHERE { resource:Q5994 property:P61 resource:Q301597 }
Yes
action is_in
entity Bartolomeo Cristofori
action find
entity piano
relation discoverer or inventor
['piano', 'discoverer or inventor', 'Bartolomeo Cristofori']
ASK WHERE { resource:piano property:discoverer_or_inventor resource:Bartolomeo_Cristofori }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q113581 Q3247557
P710
Q15275719
USER
How many recurring events did Conchita Wurst or Les amants de minuit particiate in ?
(c(Q15275719),P710,Q113581) (c(Q15275719),P710,Q3247557)
action count
action union
action filter_type
action find_reverse
entity Q113581
relation P710
type Q15275719
action filter_type
action find_reverse
entity Q3247557
relation P710
type Q15275719
[{'concept': 'Q15275719'}, 'P710', 'Q113581'] [{'concept': 'Q15275719'}, 'P710', 'Q3247557']
SELECT DISTINCT ( COUNT ( ?f ) AS ?s ) WHERE { { ?f rdf:type ontology:Q15275719 . ?f property:P710 resource:Q3247557 } UNION { ?f property:P710 resource:Q113581 . ?f rdf:type ontology:Q15275719 } }
Conchita Wurst Les amants de minuit
action count
action union
action filter_type
action find_reverse
entity Conchita Wurst
relation participant
type recurring event
action filter_type
action find_reverse
entity Les amants de minuit
relation participant
type recurring event
[{'concept': 'recurring event'}, 'participant', 'Conchita Wurst'] [{'concept': 'recurring event'}, 'participant', 'Les amants de minuit']
SELECT DISTINCT ( COUNT ( ?f ) AS ?s ) WHERE { { ?f rdf:type ontology:recurring_event . ?f property:participant resource:Les_amants_de_minuit } UNION { ?f property:participant resource:Conchita_Wurst . ?f rdf:type ontology:recurring_event } }
[]
recurring event
SYSTEM
2
Q171784 Q5354210
(c(Q15275719),P710,Q113581) (c(Q15275719),P710,Q3247557)
action count
action union
action filter_type
action find_reverse
entity Q113581
relation P710
type Q15275719
action filter_type
action find_reverse
entity Q3247557
relation P710
type Q15275719
[ANSWER]
[{'concept': 'Q15275719'}, 'P710', 'Q113581'] [{'concept': 'Q15275719'}, 'P710', 'Q3247557']
SELECT DISTINCT ( COUNT ( ?f ) AS ?s ) WHERE { { ?f rdf:type ontology:Q15275719 . ?f property:P710 resource:Q3247557 } UNION { ?f property:P710 resource:Q113581 . ?f rdf:type ontology:Q15275719 } }
Eurovision Song Contest 1956 Eurovision Song Contest 2014
2
action count
action union
action filter_type
action find_reverse
entity Conchita Wurst
relation participant
type recurring event
action filter_type
action find_reverse
entity Les amants de minuit
relation participant
type recurring event
[{'concept': 'recurring event'}, 'participant', 'Conchita Wurst'] [{'concept': 'recurring event'}, 'participant', 'Les amants de minuit']
SELECT DISTINCT ( COUNT ( ?f ) AS ?s ) WHERE { { ?f rdf:type ontology:recurring_event . ?f property:participant resource:Les_amants_de_minuit } UNION { ?f property:participant resource:Conchita_Wurst . ?f rdf:type ontology:recurring_event } }
[]