Simple Question (Direct)
Simple Question
Q3090144
P106
Q28640
USER
What are the job of Frédéric Proust ?
(Q3090144,P106,c(Q28640))
action filter_type
action find
entity Q3090144
relation P106
type Q28640
['Q3090144', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?m WHERE { resource:Q3090144 property:P106 ?m . ?m rdf:type ontology:Q28640 }
Frédéric Proust
action filter_type
action find
entity Frédéric Proust
relation occupation
type profession
['Frédéric Proust', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?m WHERE { resource:Frédéric_Proust property:occupation ?m . ?m rdf:type ontology:profession }
[]
profession
Q2526255 Q28389
SYSTEM
film director, screenwriter
Q2526255 Q28389
(Q3090144,P106,c(Q28640))
action filter_type
action find
entity Q3090144
relation P106
type Q28640
The job of Frédéric Proust are a [ANSWERS]
['Q3090144', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?m WHERE { resource:Q3090144 property:P106 ?m . ?m rdf:type ontology:Q28640 }
film director screenwriter
The job of Frédéric Proust are a film director and screenwriter
film director screenwriter
action filter_type
action find
entity Frédéric Proust
relation occupation
type profession
['Frédéric Proust', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?m WHERE { resource:Frédéric_Proust property:occupation ?m . ?m rdf:type ontology:profession }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3090144
P27
Q15617994
USER
Which administrative territory is the native country of that person ?
(Q2526255,P27,c(Q15617994)) (Q28389,P27,c(Q15617994))
action filter_type
action find
entity Q3090144
relation P27
type Q15617994
['Q2526255', 'P27', {'concept': 'Q15617994'}] ['Q28389', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { resource:Q3090144 property:P27 ?k . ?k rdf:type ontology:Q15617994 }
Frédéric Proust
action filter_type
action find
entity Frédéric Proust
relation country of citizenship
type designation for an administrative territorial entity
['film director', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['screenwriter', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Frédéric_Proust property:country_of_citizenship ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q2526255,P27,c(Q15617994)) (Q28389,P27,c(Q15617994))
action filter_type
action find
entity Q3090144
relation P27
type Q15617994
The [ANSWER] is the native country of that person
['Q2526255', 'P27', {'concept': 'Q15617994'}] ['Q28389', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { resource:Q3090144 property:P27 ?k . ?k rdf:type ontology:Q15617994 }
France
The France is the native country of that person
France
action filter_type
action find
entity Frédéric Proust
relation country of citizenship
type designation for an administrative territorial entity
['film director', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['screenwriter', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Frédéric_Proust property:country_of_citizenship ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q142 Q801 Q5552246
P530
Q15617994
USER
Does that administrative territory have ambassadorial relations with Israel and Germiston, Glasgow ?
(Q142,P530,Q801) (Q142,P530,Q5552246)
action is_in
entity Q142
action intersection
action find_reverse
entity Q801
relation P530
action find_reverse
entity Q5552246
relation P530
['Q142', 'P530', 'Q801'] ['Q142', 'P530', 'Q5552246']
ASK WHERE { resource:Q142 property:P530 resource:Q801 . resource:Q142 property:P530 resource:Q5552246 }
France Israel Germiston, Glasgow
action is_in
entity France
action intersection
action find_reverse
entity Israel
relation diplomatic relation
action find_reverse
entity Germiston, Glasgow
relation diplomatic relation
['France', 'diplomatic relation', 'Israel'] ['France', 'diplomatic relation', 'Germiston, Glasgow']
ASK WHERE { resource:France property:diplomatic_relation resource:Israel . resource:France property:diplomatic_relation resource:Germiston,_Glasgow }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q142,P530,Q801) (Q142,P530,Q5552246)
action is_in
entity Q142
action intersection
action find_reverse
entity Q801
relation P530
action find_reverse
entity Q5552246
relation P530
[ANSWER]
['Q142', 'P530', 'Q801'] ['Q142', 'P530', 'Q5552246']
ASK WHERE { resource:Q142 property:P530 resource:Q801 . resource:Q142 property:P530 resource:Q5552246 }
YES and NO respectively
action is_in
entity France
action intersection
action find_reverse
entity Israel
relation diplomatic relation
action find_reverse
entity Germiston, Glasgow
relation diplomatic relation
['France', 'diplomatic relation', 'Israel'] ['France', 'diplomatic relation', 'Germiston, Glasgow']
ASK WHERE { resource:France property:diplomatic_relation resource:Israel . resource:France property:diplomatic_relation resource:Germiston,_Glasgow }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q142
P194
Q1752346
USER
Which assembly is the legislative body for France ?
(Q142,P194,c(Q1752346))
action filter_type
action find
entity Q142
relation P194
type Q1752346
['Q142', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?o WHERE { resource:Q142 property:P194 ?o . ?o rdf:type ontology:Q1752346 }
France
action filter_type
action find
entity France
relation legislative body
type assembly
['France', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?o WHERE { resource:France property:legislative_body ?o . ?o rdf:type ontology:assembly }
[]
assembly
Q632552
SYSTEM
French Parliament
Q632552
(Q142,P194,c(Q1752346))
action filter_type
action find
entity Q142
relation P194
type Q1752346
France [ANSWER] is the legislative body for France
['Q142', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?o WHERE { resource:Q142 property:P194 ?o . ?o rdf:type ontology:Q1752346 }
French Parliament
France French Parliament is the legislative body for France
French Parliament
action filter_type
action find
entity France
relation legislative body
type assembly
['France', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?o WHERE { resource:France property:legislative_body ?o . ?o rdf:type ontology:assembly }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q142
P163
Q14660
USER
What is the name of flag associated with France ?
(Q142,P163,c(Q14660))
action filter_type
action find
entity Q142
relation P163
type Q14660
['Q142', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?x WHERE { resource:Q142 property:P163 ?x . ?x rdf:type ontology:Q14660 }
France
action filter_type
action find
entity France
relation flag
type flag
['France', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?x WHERE { resource:France property:flag ?x . ?x rdf:type ontology:flag }
[]
flag
Q43192
SYSTEM
Flag of France
Q43192
(Q142,P163,c(Q14660))
action filter_type
action find
entity Q142
relation P163
type Q14660
The name of flag associated with France is the [ANSWER]
['Q142', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?x WHERE { resource:Q142 property:P163 ?x . ?x rdf:type ontology:Q14660 }
Flag of France
The name of flag associated with France is the Flag of France
Flag of France
action filter_type
action find
entity France
relation flag
type flag
['France', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?x WHERE { resource:France property:flag ?x . ?x rdf:type ontology:flag }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q43192
P180
Q340169
USER
Which media expresses that flag ?
(c(Q340169),P180,Q43192)
action filter_type
action find_reverse
entity Q43192
relation P180
type Q340169
[{'concept': 'Q340169'}, 'P180', 'Q43192']
SELECT DISTINCT ?g WHERE { ?g property:P180 resource:Q43192 . ?g rdf:type ontology:Q340169 }
Flag of France
action filter_type
action find_reverse
entity Flag of France
relation depicts
type media
[{'concept': 'media'}, 'depicts', 'Flag of France']
SELECT DISTINCT ?g WHERE { ?g property:depicts resource:Flag_of_France . ?g rdf:type ontology:media }
[]
media
Q20668033
SYSTEM
The Last Flag Raising Ceremony: Cession of New Orleans (1803)
Q20668033
(c(Q340169),P180,Q43192)
action filter_type
action find_reverse
entity Q43192
relation P180
type Q340169
[ANSWER] expresses that flag
[{'concept': 'Q340169'}, 'P180', 'Q43192']
SELECT DISTINCT ?g WHERE { ?g property:P180 resource:Q43192 . ?g rdf:type ontology:Q340169 }
The Last Flag Raising Ceremony: Cession of New Orleans (1803)
The Last Flag Raising Ceremony: Cession of New Orleans (1803) expresses that flag
The Last Flag Raising Ceremony: Cession of New Orleans (1803)
action filter_type
action find_reverse
entity Flag of France
relation depicts
type media
[{'concept': 'media'}, 'depicts', 'Flag of France']
SELECT DISTINCT ?g WHERE { ?g property:depicts resource:Flag_of_France . ?g rdf:type ontology:media }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q20668033 Q515
P180
Q56061
USER
Is city expressed in that media ?
(Q20668033,P180,Q515)
action is_in
entity Q515
action find
entity Q20668033
relation P180
['Q20668033', 'P180', 'Q515']
ASK WHERE { resource:Q20668033 property:P180 resource:Q515 }
The Last Flag Raising Ceremony: Cession of New Orleans (1803) city
action is_in
entity city
action find
entity The Last Flag Raising Ceremony: Cession of New Orleans (1803)
relation depicts
['The Last Flag Raising Ceremony: Cession of New Orleans (1803)', 'depicts', 'city']
ASK WHERE { resource:The_Last_Flag_Raising_Ceremony:_Cession_of_New_Orleans_(1803) property:depicts resource:city }
[]
administrative territorial entity
SYSTEM
YES
(Q20668033,P180,Q515)
action is_in
entity Q515
action find
entity Q20668033
relation P180
[ANSWER]
['Q20668033', 'P180', 'Q515']
ASK WHERE { resource:Q20668033 property:P180 resource:Q515 }
Yes
action is_in
entity city
action find
entity The Last Flag Raising Ceremony: Cession of New Orleans (1803)
relation depicts
['The Last Flag Raising Ceremony: Cession of New Orleans (1803)', 'depicts', 'city']
ASK WHERE { resource:The_Last_Flag_Raising_Ceremony:_Cession_of_New_Orleans_(1803) property:depicts resource:city }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P37
Q5962346 Q34770 Q15617994
USER
Which administrative territories have their official language as exactly 2 classification schemes or languages ?
(c(Q15617994),P37,c(Q5962346)|c(Q34770))
action equal
action union
action find_tuple_counts
relation P37
type Q15617994
type Q5962346
action find_tuple_counts
relation P37
type Q15617994
type Q34770
value 2
[{'concept': 'Q15617994'}, 'P37', [{'concept': 'Q5962346'}, {'concept': 'Q34770'}]]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?x ) AS ?q ) WHERE { VALUES ( ?o ) { ( ontology:Q5962346 ) ( ontology:Q34770 ) } . ?x rdf:type ?o } GROUP BY ?j } . FILTER ( ?q = 2 ) }
action equal
action union
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type classification scheme
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type language
value 2
[{'concept': 'designation for an administrative territorial entity'}, 'official language', [{'concept': 'classification scheme'}, {'concept': 'language'}]]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?x ) AS ?q ) WHERE { VALUES ( ?o ) { ( ontology:classification_scheme ) ( ontology:language ) } . ?x rdf:type ?o } GROUP BY ?j } . FILTER ( ?q = 2 ) }
[]
classification scheme language designation for an administrative territorial entity
Q29 Q750
SYSTEM
Spain, Bolivia
Q29 Q750
(c(Q15617994),P37,c(Q5962346)|c(Q34770))
action equal
action union
action find_tuple_counts
relation P37
type Q15617994
type Q5962346
action find_tuple_counts
relation P37
type Q15617994
type Q34770
value 2
[ANSWERS] have their official language as exactly 2 classification schemes or languages
[{'concept': 'Q15617994'}, 'P37', [{'concept': 'Q5962346'}, {'concept': 'Q34770'}]]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?x ) AS ?q ) WHERE { VALUES ( ?o ) { ( ontology:Q5962346 ) ( ontology:Q34770 ) } . ?x rdf:type ?o } GROUP BY ?j } . FILTER ( ?q = 2 ) }
Spain Bolivia
Spain and Bolivia have their official language as exactly 2 classification schemes or languages
Spain Bolivia
action equal
action union
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type classification scheme
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type language
value 2
[{'concept': 'designation for an administrative territorial entity'}, 'official language', [{'concept': 'classification scheme'}, {'concept': 'language'}]]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?x ) AS ?q ) WHERE { VALUES ( ?o ) { ( ontology:classification_scheme ) ( ontology:language ) } . ?x rdf:type ?o } GROUP BY ?j } . FILTER ( ?q = 2 ) }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q1887345 Q43192
P495 P1001
Q15617994
USER
Which administrative territories belong to jurisdiction of Flag of France and are the countries of origin of The Refuge ?
AND((Q43192,P1001,c(Q15617994)), (Q1887345,P495,c(Q15617994)))
action filter_type
action intersection
action find
entity Q43192
relation P1001
action find
entity Q1887345
relation P495
type Q15617994
{'AND': [['Q43192', 'P1001', {'concept': 'Q15617994'}], ['Q1887345', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?o WHERE { resource:Q43192 property:P1001 ?o . resource:Q1887345 property:P495 ?o . ?o rdf:type ontology:Q15617994 }
The Refuge Flag of France
action filter_type
action intersection
action find
entity Flag of France
relation applies to jurisdiction
action find
entity The Refuge
relation country of origin
type designation for an administrative territorial entity
{'AND': [['Flag of France', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}], ['The Refuge', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { resource:Flag_of_France property:applies_to_jurisdiction ?o . resource:The_Refuge property:country_of_origin ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
AND((Q43192,P1001,c(Q15617994)), (Q1887345,P495,c(Q15617994)))
action filter_type
action intersection
action find
entity Q43192
relation P1001
action find
entity Q1887345
relation P495
type Q15617994
[ANSWER] belong to jurisdiction of Flag of [ANSWER] and are the countries of origin of The Refuge
{'AND': [['Q43192', 'P1001', {'concept': 'Q15617994'}], ['Q1887345', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?o WHERE { resource:Q43192 property:P1001 ?o . resource:Q1887345 property:P495 ?o . ?o rdf:type ontology:Q15617994 }
France
France belong to jurisdiction of Flag of France and are the countries of origin of The Refuge
France
action filter_type
action intersection
action find
entity Flag of France
relation applies to jurisdiction
action find
entity The Refuge
relation country of origin
type designation for an administrative territorial entity
{'AND': [['Flag of France', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}], ['The Refuge', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { resource:Flag_of_France property:applies_to_jurisdiction ?o . resource:The_Refuge property:country_of_origin ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P530
Q15617994
USER
How many administrative territories have diplomatic relationships with that administrative territory ?
(Q142,P530,c(Q15617994))
action count
action filter_type
action find
entity Q142
relation P530
type Q15617994
['Q142', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?z ) WHERE { resource:Q142 property:P530 ?f . ?f rdf:type ontology:Q15617994 }
action count
action filter_type
action find
entity France
relation diplomatic relation
type designation for an administrative territorial entity
['France', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?z ) WHERE { resource:France property:diplomatic_relation ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
15
Q711 Q159 Q222 Q801 Q145 Q155 Q1011 Q228 Q32 Q17 Q30 Q399 Q27 Q403 Q38
(Q142,P530,c(Q15617994))
action count
action filter_type
action find
entity Q142
relation P530
type Q15617994
[ANSWER]
['Q142', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?z ) WHERE { resource:Q142 property:P530 ?f . ?f rdf:type ontology:Q15617994 }
Mongolia Russia Albania Israel United Kingdom Brazil Cape Verde Andorra Luxembourg Japan United States of America Armenia Ireland Serbia Italy
15
action count
action filter_type
action find
entity France
relation diplomatic relation
type designation for an administrative territorial entity
['France', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?z ) WHERE { resource:France property:diplomatic_relation ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q498534 Q43192
P47 P1001
Q15617994
USER
Which administrative territories apply to jurisdiction of Flag of France or are adjacent to Diepholz ?
OR((Q43192,P1001,c(Q15617994)), (Q498534,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q43192
relation P1001
action find
entity Q498534
relation P47
type Q15617994
{'OR': [['Q43192', 'P1001', {'concept': 'Q15617994'}], ['Q498534', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Q498534 property:P47 ?e } UNION { resource:Q43192 property:P1001 ?e } } . ?e rdf:type ontology:Q15617994 }
Diepholz Flag of France
action filter_type
action union
action find
entity Flag of France
relation applies to jurisdiction
action find
entity Diepholz
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Flag of France', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}], ['Diepholz', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Diepholz property:shares_border_with ?e } UNION { resource:Flag_of_France property:applies_to_jurisdiction ?e } } . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142 Q504200 Q539693 Q505577 Q693942 Q504742 Q16096
SYSTEM
France, Lembruch, Lohne, Drebber, Steinfeld, Wetschen, Vechta
Q142 Q504200 Q539693 Q505577 Q693942 Q504742 Q16096
OR((Q43192,P1001,c(Q15617994)), (Q498534,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q43192
relation P1001
action find
entity Q498534
relation P47
type Q15617994
[ANSWERS] apply to jurisdiction of Flag of France or are adjacent to Diepholz
{'OR': [['Q43192', 'P1001', {'concept': 'Q15617994'}], ['Q498534', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Q498534 property:P47 ?e } UNION { resource:Q43192 property:P1001 ?e } } . ?e rdf:type ontology:Q15617994 }
France Lembruch Lohne Drebber Steinfeld Wetschen Vechta
France, Lembruch, Lohne, Drebber, Steinfeld, Wetschen and Vechta apply to jurisdiction of Flag of France or are adjacent to Diepholz
France Lembruch Lohne Drebber Steinfeld Wetschen Vechta
action filter_type
action union
action find
entity Flag of France
relation applies to jurisdiction
action find
entity Diepholz
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Flag of France', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}], ['Diepholz', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Diepholz property:shares_border_with ?e } UNION { resource:Flag_of_France property:applies_to_jurisdiction ?e } } . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q408
P38
Q8142
USER
What is used as the currency of Australia ?
(Q408,P38,c(Q8142))
action filter_type
action find
entity Q408
relation P38
type Q8142
['Q408', 'P38', {'concept': 'Q8142'}]
SELECT DISTINCT ?r WHERE { resource:Q408 property:P38 ?r . ?r rdf:type ontology:Q8142 }
Australia
action filter_type
action find
entity Australia
relation currency
type currency
['Australia', 'currency', {'concept': 'currency'}]
SELECT DISTINCT ?r WHERE { resource:Australia property:currency ?r . ?r rdf:type ontology:currency }
[]
currency
Q25224
SYSTEM
pound sterling
Q25224
(Q408,P38,c(Q8142))
action filter_type
action find
entity Q408
relation P38
type Q8142
Australia [ANSWER] is used as the currency of Australia
['Q408', 'P38', {'concept': 'Q8142'}]
SELECT DISTINCT ?r WHERE { resource:Q408 property:P38 ?r . ?r rdf:type ontology:Q8142 }
pound sterling
Australia pound sterling is used as the currency of Australia
pound sterling
action filter_type
action find
entity Australia
relation currency
type currency
['Australia', 'currency', {'concept': 'currency'}]
SELECT DISTINCT ?r WHERE { resource:Australia property:currency ?r . ?r rdf:type ontology:currency }
[]