Simple Question (Direct)
Simple Question
Q3311617
P108
Q11032
USER
Which newspaper employs Michèle Gazier ?
(Q3311617,P108,c(Q11032))
action filter_type
action find
entity Q3311617
relation P108
type Q11032
['Q3311617', 'P108', {'concept': 'Q11032'}]
SELECT DISTINCT ?g WHERE { resource:Q3311617 property:P108 ?g . ?g rdf:type ontology:Q11032 }
Michèle Gazier
action filter_type
action find
entity Michèle Gazier
relation employer
type newspaper
['Michèle Gazier', 'employer', {'concept': 'newspaper'}]
SELECT DISTINCT ?g WHERE { resource:Michèle_Gazier property:employer ?g . ?g rdf:type ontology:newspaper }
[]
newspaper
Q13717
SYSTEM
Libération
Q13717
(Q3311617,P108,c(Q11032))
action filter_type
action find
entity Q3311617
relation P108
type Q11032
[ANSWER] employs Michèle Gazier
['Q3311617', 'P108', {'concept': 'Q11032'}]
SELECT DISTINCT ?g WHERE { resource:Q3311617 property:P108 ?g . ?g rdf:type ontology:Q11032 }
Libération
Libération employs Michèle Gazier
Libération
action filter_type
action find
entity Michèle Gazier
relation employer
type newspaper
['Michèle Gazier', 'employer', {'concept': 'newspaper'}]
SELECT DISTINCT ?g WHERE { resource:Michèle_Gazier property:employer ?g . ?g rdf:type ontology:newspaper }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3311617
P27
Q15617994
USER
Which administrative territory is the native country of that person ?
(Q13717,P27,c(Q15617994))
action filter_type
action find
entity Q3311617
relation P27
type Q15617994
['Q13717', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q15617994 . resource:Q3311617 property:P27 ?q }
Michèle Gazier
action filter_type
action find
entity Michèle Gazier
relation country of citizenship
type designation for an administrative territorial entity
['Libération', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Michèle_Gazier property:country_of_citizenship ?q }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q13717,P27,c(Q15617994))
action filter_type
action find
entity Q3311617
relation P27
type Q15617994
The [ANSWER] is the native country of that person
['Q13717', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q15617994 . resource:Q3311617 property:P27 ?q }
France
The France is the native country of that person
France
action filter_type
action find
entity Michèle Gazier
relation country of citizenship
type designation for an administrative territorial entity
['Libération', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Michèle_Gazier property:country_of_citizenship ?q }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q15617994
USER
Which political territories have diplomatic relations with around 21 administrative territories ?
(c(Q15617994),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 21
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?b WHERE { FILTER ( ?g = 21 ) . { SELECT DISTINCT ?b ( COUNT ( ?w ) AS ?g ) WHERE { ?b property:P530 ?w . ?b rdf:type ontology:Q1048835 . ?w rdf:type ontology:Q15617994 } GROUP BY ?b } }
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 21
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?b WHERE { FILTER ( ?g = 21 ) . { SELECT DISTINCT ?b ( COUNT ( ?w ) AS ?g ) WHERE { ?b property:diplomatic_relation ?w . ?b rdf:type ontology:political_territorial_entity . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?b } }
[]
political territorial entity designation for an administrative territorial entity
Q35 Q16 Q40
SYSTEM
Denmark, Canada, Austria
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q15617994),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 21
[ANSWERS] have diplomatic relations with around 21 administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?b WHERE { FILTER ( ?g = 21 ) . { SELECT DISTINCT ?b ( COUNT ( ?w ) AS ?g ) WHERE { ?b property:P530 ?w . ?b rdf:type ontology:Q1048835 . ?w rdf:type ontology:Q15617994 } GROUP BY ?b } }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
Denmark, Canada and Austria have diplomatic relations with around 21 administrative territories
Denmark Canada Austria
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 21
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?b WHERE { FILTER ( ?g = 21 ) . { SELECT DISTINCT ?b ( COUNT ( ?w ) AS ?g ) WHERE { ?b property:diplomatic_relation ?w . ?b rdf:type ontology:political_territorial_entity . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?b } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q6093538
P17
Q11024
USER
Are Italic script located in those political territories ?
(Q6093538,P17,Q35) (Q6093538,P17,Q16) (Q6093538,P17,Q40)
action is_in
entity prev_answer
action find
entity Q6093538
relation P17
['Q6093538', 'P17', 'Q35'] ['Q6093538', 'P17', 'Q16'] ['Q6093538', 'P17', 'Q40']
ASK WHERE { resource:Q6093538 property:P17 ?t . VALUES ( ?t ) { ( resource:Q1000 ) ( resource:Q40 ) ( resource:Q781 ) } }
Italic script
action is_in
entity prev_answer
action find
entity Italic script
relation country
['Italic script', 'country', 'Denmark'] ['Italic script', 'country', 'Canada'] ['Italic script', 'country', 'Austria']
ASK WHERE { resource:Italic_script property:country ?t . VALUES ( ?t ) { ( resource:Gabon ) ( resource:Austria ) ( resource:Antigua_and_Barbuda ) } }
[]
communication
SYSTEM
NO
(Q6093538,P17,Q35) (Q6093538,P17,Q16) (Q6093538,P17,Q40)
action is_in
entity prev_answer
action find
entity Q6093538
relation P17
[ANSWER]
['Q6093538', 'P17', 'Q35'] ['Q6093538', 'P17', 'Q16'] ['Q6093538', 'P17', 'Q40']
ASK WHERE { resource:Q6093538 property:P17 ?t . VALUES ( ?t ) { ( resource:Q1000 ) ( resource:Q40 ) ( resource:Q781 ) } }
No
action is_in
entity prev_answer
action find
entity Italic script
relation country
['Italic script', 'country', 'Denmark'] ['Italic script', 'country', 'Canada'] ['Italic script', 'country', 'Austria']
ASK WHERE { resource:Italic_script property:country ?t . VALUES ( ?t ) { ( resource:Gabon ) ( resource:Austria ) ( resource:Antigua_and_Barbuda ) } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q15617994 Q1048835
USER
Which administrative territories have diplomatic relationships with min number of political territories ?
(c(Q1048835),P530,Q953)
action argmin
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
[{'concept': 'Q1048835'}, 'P530', 'Q953']
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( MIN ( ?e ) AS ?p ) { SELECT DISTINCT ?z ( COUNT ( ?l ) AS ?e ) WHERE { ?l property:P530 ?z . ?z rdf:type ontology:Q15617994 . ?l rdf:type ontology:Q1048835 } GROUP BY ?z } } . { SELECT DISTINCT ?t ( COUNT ( ?k ) AS ?x ) WHERE { ?k property:P530 ?t . ?t rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q1048835 } GROUP BY ?t } . FILTER ( ?x = ?p ) }
action argmin
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Zambia']
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( MIN ( ?e ) AS ?p ) { SELECT DISTINCT ?z ( COUNT ( ?l ) AS ?e ) WHERE { ?l property:diplomatic_relation ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l rdf:type ontology:political_territorial_entity } GROUP BY ?z } } . { SELECT DISTINCT ?t ( COUNT ( ?k ) AS ?x ) WHERE { ?k property:diplomatic_relation ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:political_territorial_entity } GROUP BY ?t } . FILTER ( ?x = ?p ) }
[]
designation for an administrative territorial entity political territorial entity
Q805 Q858 Q842
SYSTEM
Yemen, Syria, Oman
Q805 Q784 Q710 Q399 Q398 Q790 Q1013 Q236 Q842 Q970 Q874 Q858
(c(Q1048835),P530,Q953)
action argmin
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
[ANSWERS] have diplomatic relationships with min number of political territories
[{'concept': 'Q1048835'}, 'P530', 'Q953']
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( MIN ( ?e ) AS ?p ) { SELECT DISTINCT ?z ( COUNT ( ?l ) AS ?e ) WHERE { ?l property:P530 ?z . ?z rdf:type ontology:Q15617994 . ?l rdf:type ontology:Q1048835 } GROUP BY ?z } } . { SELECT DISTINCT ?t ( COUNT ( ?k ) AS ?x ) WHERE { ?k property:P530 ?t . ?t rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q1048835 } GROUP BY ?t } . FILTER ( ?x = ?p ) }
Yemen Dominica Kiribati Armenia Bahrain Haiti Lesotho Montenegro Oman Comoros Turkmenistan Syria
Yemen, Syria and Oman have diplomatic relationships with min number of political territories
Yemen Syria Oman
action argmin
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Zambia']
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( MIN ( ?e ) AS ?p ) { SELECT DISTINCT ?z ( COUNT ( ?l ) AS ?e ) WHERE { ?l property:diplomatic_relation ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l rdf:type ontology:political_territorial_entity } GROUP BY ?z } } . { SELECT DISTINCT ?t ( COUNT ( ?k ) AS ?x ) WHERE { ?k property:diplomatic_relation ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:political_territorial_entity } GROUP BY ?t } . FILTER ( ?x = ?p ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q834378 Q13717
P495
Q15617994
USER
Which administrative territories are the origins of Libération or In the City Without Limits ?
OR((Q13717,P495,c(Q15617994)), (Q834378,P495,c(Q15617994)))
action filter_type
action union
action find
entity Q13717
relation P495
action find
entity Q834378
relation P495
type Q15617994
{'OR': [['Q13717', 'P495', {'concept': 'Q15617994'}], ['Q834378', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Q13717 property:P495 ?i } UNION { resource:Q834378 property:P495 ?i } } . ?i rdf:type ontology:Q15617994 }
In the City Without Limits Libération
action filter_type
action union
action find
entity Libération
relation country of origin
action find
entity In the City Without Limits
relation country of origin
type designation for an administrative territorial entity
{'OR': [['Libération', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['In the City Without Limits', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Libération property:country_of_origin ?i } UNION { resource:In_the_City_Without_Limits property:country_of_origin ?i } } . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142 Q29 Q414
SYSTEM
France, Spain, Argentina
Q142 Q29 Q414
OR((Q13717,P495,c(Q15617994)), (Q834378,P495,c(Q15617994)))
action filter_type
action union
action find
entity Q13717
relation P495
action find
entity Q834378
relation P495
type Q15617994
[ANSWERS] are the origins of Libération or In the City Without Limits
{'OR': [['Q13717', 'P495', {'concept': 'Q15617994'}], ['Q834378', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Q13717 property:P495 ?i } UNION { resource:Q834378 property:P495 ?i } } . ?i rdf:type ontology:Q15617994 }
France Spain Argentina
France, Spain and Argentina are the origins of Libération or In the City Without Limits
France Spain Argentina
action filter_type
action union
action find
entity Libération
relation country of origin
action find
entity In the City Without Limits
relation country of origin
type designation for an administrative territorial entity
{'OR': [['Libération', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['In the City Without Limits', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Libération property:country_of_origin ?i } UNION { resource:In_the_City_Without_Limits property:country_of_origin ?i } } . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q159 Q858
P530
Q15617994
USER
Which administrative territories have diplomatic relations with Syria and Russia ?
AND((Q858,P530,c(Q15617994)), (Q159,P530,c(Q15617994)))
action filter_type
action intersection
action find
entity Q858
relation P530
action find
entity Q159
relation P530
type Q15617994
{'AND': [['Q858', 'P530', {'concept': 'Q15617994'}], ['Q159', 'P530', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?n WHERE { resource:Q858 property:P530 ?n . resource:Q159 property:P530 ?n . ?n rdf:type ontology:Q15617994 }
Russia Syria
action filter_type
action intersection
action find
entity Syria
relation diplomatic relation
action find
entity Russia
relation diplomatic relation
type designation for an administrative territorial entity
{'AND': [['Syria', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Russia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { resource:Syria property:diplomatic_relation ?n . resource:Russia property:diplomatic_relation ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q805 Q801 Q148 Q17 Q30 Q79
SYSTEM
Yemen, Israel, People's Republic of China, Japan, United States of America, Egypt
Q805 Q801 Q148 Q17 Q30 Q79
AND((Q858,P530,c(Q15617994)), (Q159,P530,c(Q15617994)))
action filter_type
action intersection
action find
entity Q858
relation P530
action find
entity Q159
relation P530
type Q15617994
[ANSWERS] have diplomatic relations with Syria and Russia
{'AND': [['Q858', 'P530', {'concept': 'Q15617994'}], ['Q159', 'P530', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?n WHERE { resource:Q858 property:P530 ?n . resource:Q159 property:P530 ?n . ?n rdf:type ontology:Q15617994 }
Yemen Israel People's Republic of China Japan United States of America Egypt
Yemen, Israel, People's Republic of China, Japan, United States of America and Egypt have diplomatic relations with Syria and Russia
Yemen Israel People's Republic of China Japan United States of America Egypt
action filter_type
action intersection
action find
entity Syria
relation diplomatic relation
action find
entity Russia
relation diplomatic relation
type designation for an administrative territorial entity
{'AND': [['Syria', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Russia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { resource:Syria property:diplomatic_relation ?n . resource:Russia property:diplomatic_relation ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q801 Q793051
P17
Q15617994
USER
How many administrative territories are Israel or Aylesbury duck present in ?
(Q801,P17,c(Q15617994)) (Q793051,P17,c(Q15617994))
action count
action union
action filter_type
action find
entity Q801
relation P17
type Q15617994
action filter_type
action find
entity Q793051
relation P17
type Q15617994
['Q801', 'P17', {'concept': 'Q15617994'}] ['Q793051', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?b ) WHERE { VALUES ( ?a ) { ( resource:Q801 ) ( resource:Q793051 ) } . ?a property:P17 ?n }
Israel Aylesbury duck
action count
action union
action filter_type
action find
entity Israel
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Aylesbury duck
relation country
type designation for an administrative territorial entity
['Israel', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Aylesbury duck', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?b ) WHERE { VALUES ( ?a ) { ( resource:Israel ) ( resource:Aylesbury_duck ) } . ?a property:country ?n }
[]
designation for an administrative territorial entity
SYSTEM
2
Q801 Q145
(Q801,P17,c(Q15617994)) (Q793051,P17,c(Q15617994))
action count
action union
action filter_type
action find
entity Q801
relation P17
type Q15617994
action filter_type
action find
entity Q793051
relation P17
type Q15617994
[ANSWER]
['Q801', 'P17', {'concept': 'Q15617994'}] ['Q793051', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?b ) WHERE { VALUES ( ?a ) { ( resource:Q801 ) ( resource:Q793051 ) } . ?a property:P17 ?n }
Israel United Kingdom
2
action count
action union
action filter_type
action find
entity Israel
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Aylesbury duck
relation country
type designation for an administrative territorial entity
['Israel', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Aylesbury duck', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?b ) WHERE { VALUES ( ?a ) { ( resource:Israel ) ( resource:Aylesbury_duck ) } . ?a property:country ?n }
[]