Simple Question (Direct)
Simple Question
Q784812
P364
Q34770
USER
Which language was used originally for the creation of The Battle of Algiers ?
(Q784812,P364,c(Q34770))
action filter_type
action find
entity Q784812
relation P364
type Q34770
['Q784812', 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?z WHERE { resource:Q784812 property:P364 ?z . ?z rdf:type ontology:Q34770 }
The Battle of Algiers
action filter_type
action find
entity The Battle of Algiers
relation original language of work
type language
['The Battle of Algiers', 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?z WHERE { resource:The_Battle_of_Algiers property:original_language_of_work ?z . ?z rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q784812,P364,c(Q34770))
action filter_type
action find
entity Q784812
relation P364
type Q34770
[ANSWER] was used originally for the creation of The Battle of Algiers
['Q784812', 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?z WHERE { resource:Q784812 property:P364 ?z . ?z rdf:type ontology:Q34770 }
English
English was used originally for the creation of The Battle of Algiers
English
action filter_type
action find
entity The Battle of Algiers
relation original language of work
type language
['The Battle of Algiers', 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?z WHERE { resource:The_Battle_of_Algiers property:original_language_of_work ?z . ?z rdf:type ontology:language }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q784812
P1040
Q502895
USER
Who has editted The Battle of Algiers ?
(Q784812,P1040,c(Q502895))
action filter_type
action find
entity Q784812
relation P1040
type Q502895
['Q784812', 'P1040', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { resource:Q784812 property:P1040 ?c . ?c rdf:type ontology:Q502895 }
The Battle of Algiers
action filter_type
action find
entity The Battle of Algiers
relation film editor
type common name
['The Battle of Algiers', 'film editor', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { resource:The_Battle_of_Algiers property:film_editor ?c . ?c rdf:type ontology:common_name }
[]
common name
Q3848844
SYSTEM
Mario Morra
Q3848844
(Q784812,P1040,c(Q502895))
action filter_type
action find
entity Q784812
relation P1040
type Q502895
[ANSWER] has editted The Battle of Algiers
['Q784812', 'P1040', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { resource:Q784812 property:P1040 ?c . ?c rdf:type ontology:Q502895 }
Mario Morra
Mario Morra has editted The Battle of Algiers
Mario Morra
action filter_type
action find
entity The Battle of Algiers
relation film editor
type common name
['The Battle of Algiers', 'film editor', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { resource:The_Battle_of_Algiers property:film_editor ?c . ?c rdf:type ontology:common_name }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q880226
Q502895
USER
And also tell me about Black Dog?
(Q880226,P1040,c(Q502895))
action filter_type
action find
entity Q880226
relation P1040
type Q502895
['Q880226', 'P1040', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q880226 property:P1040 ?j . ?j rdf:type ontology:Q502895 }
Black Dog
action filter_type
action find
entity Black Dog
relation film editor
type common name
['Black Dog', 'film editor', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:Black_Dog property:film_editor ?j . ?j rdf:type ontology:common_name }
[]
common name
Q23794355
SYSTEM
Sabrina Plisco
Q23794355
(Q880226,P1040,c(Q502895))
action filter_type
action find
entity Q880226
relation P1040
type Q502895
[ANSWER]
['Q880226', 'P1040', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q880226 property:P1040 ?j . ?j rdf:type ontology:Q502895 }
Sabrina Plisco
Sabrina Plisco
action filter_type
action find
entity Black Dog
relation film editor
type common name
['Black Dog', 'film editor', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:Black_Dog property:film_editor ?j . ?j rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P37
Q34770 Q13220204 Q1048835
USER
Which languages are considered to be the official language of max number of administrative country subdivisions or political territories ?
(c(Q13220204)|c(Q1048835),P37,c(Q34770))
action argmax
action union
action find_reverse_tuple_counts
relation P37
type Q34770
type Q13220204
action find_reverse_tuple_counts
relation P37
type Q34770
type Q1048835
[[{'concept': 'Q13220204'}, {'concept': 'Q1048835'}], 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( MAX ( ?f ) AS ?w ) { SELECT DISTINCT ( COUNT ( ?o ) AS ?f ) ?d WHERE { { ?d rdf:type ontology:Q34770 . ?o rdf:type ontology:Q1048835 . ?o property:P37 ?d } UNION { ?o property:P37 ?d . ?o rdf:type ontology:Q13220204 . ?d rdf:type ontology:Q34770 } } GROUP BY ?d } } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?h ) ?u WHERE { ?m rdf:type ?r . VALUES ( ?r ) { ( ontology:Q13220204 ) ( ontology:Q1048835 ) } } GROUP BY ?u } . FILTER ( ?h = ?w ) }
action argmax
action union
action find_reverse_tuple_counts
relation official language
type language
type second-level administrative country subdivision
action find_reverse_tuple_counts
relation official language
type language
type political territorial entity
[[{'concept': 'second-level administrative country subdivision'}, {'concept': 'political territorial entity'}], 'official language', {'concept': 'language'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( MAX ( ?f ) AS ?w ) { SELECT DISTINCT ( COUNT ( ?o ) AS ?f ) ?d WHERE { { ?d rdf:type ontology:language . ?o rdf:type ontology:political_territorial_entity . ?o property:official_language ?d } UNION { ?o property:official_language ?d . ?o rdf:type ontology:second-level_administrative_country_subdivision . ?d rdf:type ontology:language } } GROUP BY ?d } } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?h ) ?u WHERE { ?m rdf:type ?r . VALUES ( ?r ) { ( ontology:second-level_administrative_country_subdivision ) ( ontology:political_territorial_entity ) } } GROUP BY ?u } . FILTER ( ?h = ?w ) }
[]
language second-level administrative country subdivision political territorial entity
Q652
SYSTEM
Italian
Q652
(c(Q13220204)|c(Q1048835),P37,c(Q34770))
action argmax
action union
action find_reverse_tuple_counts
relation P37
type Q34770
type Q13220204
action find_reverse_tuple_counts
relation P37
type Q34770
type Q1048835
[ANSWER] is considered to be the official language of max number of administrative country subdivisions or political territories
[[{'concept': 'Q13220204'}, {'concept': 'Q1048835'}], 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( MAX ( ?f ) AS ?w ) { SELECT DISTINCT ( COUNT ( ?o ) AS ?f ) ?d WHERE { { ?d rdf:type ontology:Q34770 . ?o rdf:type ontology:Q1048835 . ?o property:P37 ?d } UNION { ?o property:P37 ?d . ?o rdf:type ontology:Q13220204 . ?d rdf:type ontology:Q34770 } } GROUP BY ?d } } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?h ) ?u WHERE { ?m rdf:type ?r . VALUES ( ?r ) { ( ontology:Q13220204 ) ( ontology:Q1048835 ) } } GROUP BY ?u } . FILTER ( ?h = ?w ) }
Italian
Italian is considered to be the official language of max number of administrative country subdivisions or political territories
Italian
action argmax
action union
action find_reverse_tuple_counts
relation official language
type language
type second-level administrative country subdivision
action find_reverse_tuple_counts
relation official language
type language
type political territorial entity
[[{'concept': 'second-level administrative country subdivision'}, {'concept': 'political territorial entity'}], 'official language', {'concept': 'language'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( MAX ( ?f ) AS ?w ) { SELECT DISTINCT ( COUNT ( ?o ) AS ?f ) ?d WHERE { { ?d rdf:type ontology:language . ?o rdf:type ontology:political_territorial_entity . ?o property:official_language ?d } UNION { ?o property:official_language ?d . ?o rdf:type ontology:second-level_administrative_country_subdivision . ?d rdf:type ontology:language } } GROUP BY ?d } } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?h ) ?u WHERE { ?m rdf:type ?r . VALUES ( ?r ) { ( ontology:second-level_administrative_country_subdivision ) ( ontology:political_territorial_entity ) } } GROUP BY ?u } . FILTER ( ?h = ?w ) }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q652
P407
Q81672
USER
Which assassination is in that language ?
(c(Q81672),P407,Q652)
action filter_type
action find_reverse
entity Q652
relation P407
type Q81672
[{'concept': 'Q81672'}, 'P407', 'Q652']
SELECT DISTINCT ?x WHERE { ?x property:P407 resource:Q652 . ?x rdf:type ontology:Q81672 }
Italian
action filter_type
action find_reverse
entity Italian
relation language of work or name
type assassination
[{'concept': 'assassination'}, 'language of work or name', 'Italian']
SELECT DISTINCT ?x WHERE { ?x property:language_of_work_or_name resource:Italian . ?x rdf:type ontology:assassination }
[]
assassination
Q10818
SYSTEM
7 July 2005 London bombings
Q10818
(c(Q81672),P407,Q652)
action filter_type
action find_reverse
entity Q652
relation P407
type Q81672
[ANSWER] is in that language
[{'concept': 'Q81672'}, 'P407', 'Q652']
SELECT DISTINCT ?x WHERE { ?x property:P407 resource:Q652 . ?x rdf:type ontology:Q81672 }
7 July 2005 London bombings
7 July 2005 London bombings is in that language
7 July 2005 London bombings
action filter_type
action find_reverse
entity Italian
relation language of work or name
type assassination
[{'concept': 'assassination'}, 'language of work or name', 'Italian']
SELECT DISTINCT ?x WHERE { ?x property:language_of_work_or_name resource:Italian . ?x rdf:type ontology:assassination }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q10818
P1344
Q502895
USER
Who took part in that assassination ?
(c(Q502895),P1344,Q10818)
action filter_type
action find_reverse
entity Q10818
relation P1344
type Q502895
[{'concept': 'Q502895'}, 'P1344', 'Q10818']
SELECT DISTINCT ?c WHERE { ?c property:P1344 resource:Q10818 . ?c rdf:type ontology:Q502895 }
7 July 2005 London bombings
action filter_type
action find_reverse
entity 7 July 2005 London bombings
relation participant of
type common name
[{'concept': 'common name'}, 'participant of', '7 July 2005 London bombings']
SELECT DISTINCT ?c WHERE { ?c property:participant_of resource:7_July_2005_London_bombings . ?c rdf:type ontology:common_name }
[]
common name
Q674709
SYSTEM
Mohammad Sidique Khan
Q674709
(c(Q502895),P1344,Q10818)
action filter_type
action find_reverse
entity Q10818
relation P1344
type Q502895
[ANSWER] took part in that assassination
[{'concept': 'Q502895'}, 'P1344', 'Q10818']
SELECT DISTINCT ?c WHERE { ?c property:P1344 resource:Q10818 . ?c rdf:type ontology:Q502895 }
Mohammad Sidique Khan
Mohammad Sidique Khan took part in that assassination
Mohammad Sidique Khan
action filter_type
action find_reverse
entity 7 July 2005 London bombings
relation participant of
type common name
[{'concept': 'common name'}, 'participant of', '7 July 2005 London bombings']
SELECT DISTINCT ?c WHERE { ?c property:participant_of resource:7_July_2005_London_bombings . ?c rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q674709 Q84 Q16457144
P20
Q56061
USER
Does that person have London and Krupšė as the area of death ?
(Q674709,P20,Q84) (Q674709,P20,Q16457144)
action is_in
entity Q674709
action intersection
action find_reverse
entity Q84
relation P20
action find_reverse
entity Q16457144
relation P20
['Q674709', 'P20', 'Q84'] ['Q674709', 'P20', 'Q16457144']
ASK WHERE { resource:Q674709 property:P20 resource:Q84 . resource:Q674709 property:P20 resource:Q16457144 }
Mohammad Sidique Khan London Krupšė
action is_in
entity Mohammad Sidique Khan
action intersection
action find_reverse
entity London
relation place of death
action find_reverse
entity Krupšė
relation place of death
['Mohammad Sidique Khan', 'place of death', 'London'] ['Mohammad Sidique Khan', 'place of death', 'Krupšė']
ASK WHERE { resource:Mohammad_Sidique_Khan property:place_of_death resource:London . resource:Mohammad_Sidique_Khan property:place_of_death resource:Krupšė }
[]
administrative territorial entity
SYSTEM
YES and NO respectively
(Q674709,P20,Q84) (Q674709,P20,Q16457144)
action is_in
entity Q674709
action intersection
action find_reverse
entity Q84
relation P20
action find_reverse
entity Q16457144
relation P20
[ANSWER]
['Q674709', 'P20', 'Q84'] ['Q674709', 'P20', 'Q16457144']
ASK WHERE { resource:Q674709 property:P20 resource:Q84 . resource:Q674709 property:P20 resource:Q16457144 }
YES and NO respectively
action is_in
entity Mohammad Sidique Khan
action intersection
action find_reverse
entity London
relation place of death
action find_reverse
entity Krupšė
relation place of death
['Mohammad Sidique Khan', 'place of death', 'London'] ['Mohammad Sidique Khan', 'place of death', 'Krupšė']
ASK WHERE { resource:Mohammad_Sidique_Khan property:place_of_death resource:London . resource:Mohammad_Sidique_Khan property:place_of_death resource:Krupšė }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q784812 Q38
P495
Q15617994
USER
Did that work of art originate Italy ?
(Q784812,P495,Q38)
action is_in
entity Q38
action find
entity Q784812
relation P495
['Q784812', 'P495', 'Q38']
ASK WHERE { resource:Q784812 property:P495 resource:Q38 }
The Battle of Algiers Italy
action is_in
entity Italy
action find
entity The Battle of Algiers
relation country of origin
['The Battle of Algiers', 'country of origin', 'Italy']
ASK WHERE { resource:The_Battle_of_Algiers property:country_of_origin resource:Italy }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q784812,P495,Q38)
action is_in
entity Q38
action find
entity Q784812
relation P495
[ANSWER]
['Q784812', 'P495', 'Q38']
ASK WHERE { resource:Q784812 property:P495 resource:Q38 }
Yes
action is_in
entity Italy
action find
entity The Battle of Algiers
relation country of origin
['The Battle of Algiers', 'country of origin', 'Italy']
ASK WHERE { resource:The_Battle_of_Algiers property:country_of_origin resource:Italy }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q784812
P495
Q15617994
USER
How many administrative territories are the countries of origin of The Battle of Algiers ?
(Q784812,P495,c(Q15617994))
action count
action filter_type
action find
entity Q784812
relation P495
type Q15617994
['Q784812', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?c ) WHERE { resource:Q784812 property:P495 ?v . ?v rdf:type ontology:Q15617994 }
The Battle of Algiers
action count
action filter_type
action find
entity The Battle of Algiers
relation country of origin
type designation for an administrative territorial entity
['The Battle of Algiers', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?c ) WHERE { resource:The_Battle_of_Algiers property:country_of_origin ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
1
Q38
(Q784812,P495,c(Q15617994))
action count
action filter_type
action find
entity Q784812
relation P495
type Q15617994
[ANSWER]
['Q784812', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?c ) WHERE { resource:Q784812 property:P495 ?v . ?v rdf:type ontology:Q15617994 }
Italy
1
action count
action filter_type
action find
entity The Battle of Algiers
relation country of origin
type designation for an administrative territorial entity
['The Battle of Algiers', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?c ) WHERE { resource:The_Battle_of_Algiers property:country_of_origin ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q784812
P462
Q1075
USER
Which color is associated with that work of art ?
action filter_type
action find
entity Q784812
relation P462
type Q1075
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q1075 . resource:Q784812 property:P462 ?b }
The Battle of Algiers
action filter_type
action find
entity The Battle of Algiers
relation color
type color
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:color . resource:The_Battle_of_Algiers property:color ?b }
[]
color
Q2254548
SYSTEM
black-and-white film
Q2254548
action filter_type
action find
entity Q784812
relation P462
type Q1075
[ANSWER] is associated with that work of art
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q1075 . resource:Q784812 property:P462 ?b }
black-and-white film
Black-and-white film is associated with that work of art
black-and-white film
action filter_type
action find
entity The Battle of Algiers
relation color
type color
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:color . resource:The_Battle_of_Algiers property:color ?b }
[]