Simple Question (Direct)
Simple Question
Q58824
P17
Q15617994
USER
Which administrative territory is Roccamonfina a part of ?
(Q58824,P17,c(Q15617994))
action filter_type
action find
entity Q58824
relation P17
type Q15617994
['Q58824', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { resource:Q58824 property:P17 ?n . ?n rdf:type ontology:Q15617994 }
Roccamonfina
action filter_type
action find
entity Roccamonfina
relation country
type designation for an administrative territorial entity
['Roccamonfina', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Roccamonfina property:country ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38
SYSTEM
Italy
Q38
(Q58824,P17,c(Q15617994))
action filter_type
action find
entity Q58824
relation P17
type Q15617994
Which administrative territory is Roccamonfina a part of
['Q58824', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { resource:Q58824 property:P17 ?n . ?n rdf:type ontology:Q15617994 }
Italy
Which administrative territory is Roccamonfina a part of
Italy
action filter_type
action find
entity Roccamonfina
relation country
type designation for an administrative territorial entity
['Roccamonfina', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Roccamonfina property:country ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q38
P163
Q14660
USER
Which flag is associated with that administrative territory ?
(Q38,P163,c(Q14660))
action filter_type
action find
entity Q38
relation P163
type Q14660
['Q38', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?i WHERE { resource:Q38 property:P163 ?i . ?i rdf:type ontology:Q14660 }
Italy
action filter_type
action find
entity Italy
relation flag
type flag
['Italy', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?i WHERE { resource:Italy property:flag ?i . ?i rdf:type ontology:flag }
[]
flag
Q42876
SYSTEM
Flag of Italy
Q42876
(Q38,P163,c(Q14660))
action filter_type
action find
entity Q38
relation P163
type Q14660
Italy [ANSWER] is associated with that administrative territory
['Q38', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?i WHERE { resource:Q38 property:P163 ?i . ?i rdf:type ontology:Q14660 }
Flag of Italy
Italy Flag of Italy is associated with that administrative territory
Flag of Italy
action filter_type
action find
entity Italy
relation flag
type flag
['Italy', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?i WHERE { resource:Italy property:flag ?i . ?i rdf:type ontology:flag }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P180
Q391414 Q3516658 Q14660
USER
Which flags demonstrate approximately 1 architectural elements or heraldic symbols ?
(c(Q14660),P180,c(Q391414)|c(Q3516658))
action approx
action union
action find_tuple_counts
relation P180
type Q14660
type Q391414
action find_tuple_counts
relation P180
type Q14660
type Q3516658
value 1
[{'concept': 'Q14660'}, 'P180', [{'concept': 'Q391414'}, {'concept': 'Q3516658'}]]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?p ) AS ?m ) WHERE { { ?q rdf:type ontology:Q14660 . ?p rdf:type ontology:Q391414 . ?q property:P180 ?p } UNION { ?p rdf:type ontology:Q3516658 . ?q rdf:type ontology:Q14660 . ?q property:P180 ?p } } GROUP BY ?q } . FILTER ( ?m = 1 ) }
action approx
action union
action find_tuple_counts
relation depicts
type flag
type architectural element
action find_tuple_counts
relation depicts
type flag
type heraldic symbol
value 1
[{'concept': 'flag'}, 'depicts', [{'concept': 'architectural element'}, {'concept': 'heraldic symbol'}]]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?p ) AS ?m ) WHERE { { ?q rdf:type ontology:flag . ?p rdf:type ontology:architectural_element . ?q property:depicts ?p } UNION { ?p rdf:type ontology:heraldic_symbol . ?q rdf:type ontology:flag . ?q property:depicts ?p } } GROUP BY ?q } . FILTER ( ?m = 1 ) }
[]
architectural element heraldic symbol flag
Q83278 Q165641 Q1426379
SYSTEM
flag of the United Kingdom, flag of Kyrgyzstan, Flag of Amsterdam
Q601976 Q83278 Q165641 Q1426379
(c(Q14660),P180,c(Q391414)|c(Q3516658))
action approx
action union
action find_tuple_counts
relation P180
type Q14660
type Q391414
action find_tuple_counts
relation P180
type Q14660
type Q3516658
value 1
[ANSWERS] demonstrate approximately 1 architectural elements or heraldic symbols
[{'concept': 'Q14660'}, 'P180', [{'concept': 'Q391414'}, {'concept': 'Q3516658'}]]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?p ) AS ?m ) WHERE { { ?q rdf:type ontology:Q14660 . ?p rdf:type ontology:Q391414 . ?q property:P180 ?p } UNION { ?p rdf:type ontology:Q3516658 . ?q rdf:type ontology:Q14660 . ?q property:P180 ?p } } GROUP BY ?q } . FILTER ( ?m = 1 ) }
Flag of Nova Scotia flag of the United Kingdom flag of Kyrgyzstan Flag of Amsterdam
Flag of the United Kingdom, flag of Kyrgyzstan and Flag of Amsterdam demonstrate approximately 1 architectural elements or heraldic symbols
flag of the United Kingdom flag of Kyrgyzstan Flag of Amsterdam
action approx
action union
action find_tuple_counts
relation depicts
type flag
type architectural element
action find_tuple_counts
relation depicts
type flag
type heraldic symbol
value 1
[{'concept': 'flag'}, 'depicts', [{'concept': 'architectural element'}, {'concept': 'heraldic symbol'}]]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?p ) AS ?m ) WHERE { { ?q rdf:type ontology:flag . ?p rdf:type ontology:architectural_element . ?q property:depicts ?p } UNION { ?p rdf:type ontology:heraldic_symbol . ?q rdf:type ontology:flag . ?q property:depicts ?p } } GROUP BY ?q } . FILTER ( ?m = 1 ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q12188
P941
Q14660 Q14660
USER
Which flags have lesser number of flags as source of inspiration than flag of Brittany ?
(c(Q14660),P941,c(Q14660))
action less
action find_tuple_counts
relation P941
type Q14660
type Q14660
action count
action filter_type
action find
entity Q12188
relation P941
type Q14660
[{'concept': 'Q14660'}, 'P941', {'concept': 'Q14660'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?h ) AS ?a ) WHERE { ?o property:P941 ?h . ?o rdf:type ontology:Q14660 . ?h rdf:type ontology:Q14660 } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?f ) WHERE { resource:Q12188 property:P941 ?l . ?l rdf:type ontology:Q14660 } } . FILTER ( ?a < ?f ) }
flag of Brittany
action less
action find_tuple_counts
relation inspired by
type flag
type flag
action count
action filter_type
action find
entity flag of Brittany
relation inspired by
type flag
[{'concept': 'flag'}, 'inspired by', {'concept': 'flag'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?h ) AS ?a ) WHERE { ?o property:inspired_by ?h . ?o rdf:type ontology:flag . ?h rdf:type ontology:flag } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?f ) WHERE { resource:flag_of_Brittany property:inspired_by ?l . ?l rdf:type ontology:flag } } . FILTER ( ?a < ?f ) }
[]
flag flag
Q429900 Q604735
SYSTEM
Flag of Saba, Flag of Sint Maarten
Q429900 Q604735
(c(Q14660),P941,c(Q14660))
action less
action find_tuple_counts
relation P941
type Q14660
type Q14660
action count
action filter_type
action find
entity Q12188
relation P941
type Q14660
[ANSWERS] have lesser number of flags as source of inspiration than flag of Brittany
[{'concept': 'Q14660'}, 'P941', {'concept': 'Q14660'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?h ) AS ?a ) WHERE { ?o property:P941 ?h . ?o rdf:type ontology:Q14660 . ?h rdf:type ontology:Q14660 } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?f ) WHERE { resource:Q12188 property:P941 ?l . ?l rdf:type ontology:Q14660 } } . FILTER ( ?a < ?f ) }
Flag of Saba Flag of Sint Maarten
Flag of Saba and Flag of Sint Maarten have lesser number of flags as source of inspiration than flag of Brittany
Flag of Saba Flag of Sint Maarten
action less
action find_tuple_counts
relation inspired by
type flag
type flag
action count
action filter_type
action find
entity flag of Brittany
relation inspired by
type flag
[{'concept': 'flag'}, 'inspired by', {'concept': 'flag'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?h ) AS ?a ) WHERE { ?o property:inspired_by ?h . ?o rdf:type ontology:flag . ?h rdf:type ontology:flag } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?f ) WHERE { resource:flag_of_Brittany property:inspired_by ?l . ?l rdf:type ontology:flag } } . FILTER ( ?a < ?f ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P941
Q14660 Q14660
USER
Which flags were max number of flags a source of inspiration for ?
(c(Q14660),P941,c(Q14660))
action argmax
action find_tuple_counts
relation P941
type Q14660
type Q14660
[{'concept': 'Q14660'}, 'P941', {'concept': 'Q14660'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?p ) AS ?u ) WHERE { ?y rdf:type ontology:Q14660 . ?p rdf:type ontology:Q14660 . ?y property:P941 ?p } GROUP BY ?y } . FILTER ( ?u = ?r ) . { SELECT DISTINCT ( MAX ( ?d ) AS ?r ) { SELECT DISTINCT ?e ( COUNT ( ?j ) AS ?d ) WHERE { ?e property:P941 ?j . ?e rdf:type ontology:Q14660 . ?j rdf:type ontology:Q14660 } GROUP BY ?e } } }
action argmax
action find_tuple_counts
relation inspired by
type flag
type flag
[{'concept': 'flag'}, 'inspired by', {'concept': 'flag'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?p ) AS ?u ) WHERE { ?y rdf:type ontology:flag . ?p rdf:type ontology:flag . ?y property:inspired_by ?p } GROUP BY ?y } . FILTER ( ?u = ?r ) . { SELECT DISTINCT ( MAX ( ?d ) AS ?r ) { SELECT DISTINCT ?e ( COUNT ( ?j ) AS ?d ) WHERE { ?e property:inspired_by ?j . ?e rdf:type ontology:flag . ?j rdf:type ontology:flag } GROUP BY ?e } } }
[]
flag flag
Q12188
SYSTEM
flag of Brittany
Q12188
(c(Q14660),P941,c(Q14660))
action argmax
action find_tuple_counts
relation P941
type Q14660
type Q14660
[ANSWER] was max number of flags a source of inspiration for
[{'concept': 'Q14660'}, 'P941', {'concept': 'Q14660'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?p ) AS ?u ) WHERE { ?y rdf:type ontology:Q14660 . ?p rdf:type ontology:Q14660 . ?y property:P941 ?p } GROUP BY ?y } . FILTER ( ?u = ?r ) . { SELECT DISTINCT ( MAX ( ?d ) AS ?r ) { SELECT DISTINCT ?e ( COUNT ( ?j ) AS ?d ) WHERE { ?e property:P941 ?j . ?e rdf:type ontology:Q14660 . ?j rdf:type ontology:Q14660 } GROUP BY ?e } } }
flag of Brittany
Flag of Brittany was max number of flags a source of inspiration for
flag of Brittany
action argmax
action find_tuple_counts
relation inspired by
type flag
type flag
[{'concept': 'flag'}, 'inspired by', {'concept': 'flag'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?p ) AS ?u ) WHERE { ?y rdf:type ontology:flag . ?p rdf:type ontology:flag . ?y property:inspired_by ?p } GROUP BY ?y } . FILTER ( ?u = ?r ) . { SELECT DISTINCT ( MAX ( ?d ) AS ?r ) { SELECT DISTINCT ?e ( COUNT ( ?j ) AS ?d ) WHERE { ?e property:inspired_by ?j . ?e rdf:type ontology:flag . ?j rdf:type ontology:flag } GROUP BY ?e } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Indirect
P163
Q14660 Q13220204
USER
How many flags have less number of administrative country subdivisions as their flag than that flag ?
(c(Q13220204),P163,c(Q14660))
action count
action less
action find_tuple_counts
relation P163
type Q14660
type Q13220204
action count
action filter_type
action find
entity Q12188
relation P163
type Q14660
[{'concept': 'Q13220204'}, 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?c ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?f ) WHERE { resource:Q12188 property:P163 ?u . ?u rdf:type ontology:Q14660 } } . FILTER ( ?j < ?f ) . { SELECT DISTINCT ?q ( COUNT ( ?l ) AS ?j ) WHERE { ?q property:P163 ?l . ?q rdf:type ontology:Q14660 . ?l rdf:type ontology:Q13220204 } GROUP BY ?q } }
action count
action less
action find_tuple_counts
relation flag
type flag
type second-level administrative country subdivision
action count
action filter_type
action find
entity flag of Brittany
relation flag
type flag
[{'concept': 'second-level administrative country subdivision'}, 'flag', {'concept': 'flag'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?c ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?f ) WHERE { resource:flag_of_Brittany property:flag ?u . ?u rdf:type ontology:flag } } . FILTER ( ?j < ?f ) . { SELECT DISTINCT ?q ( COUNT ( ?l ) AS ?j ) WHERE { ?q property:flag ?l . ?q rdf:type ontology:flag . ?l rdf:type ontology:second-level_administrative_country_subdivision } GROUP BY ?q } }
[]
flag second-level administrative country subdivision
SYSTEM
0
(c(Q13220204),P163,c(Q14660))
action count
action less
action find_tuple_counts
relation P163
type Q14660
type Q13220204
action count
action filter_type
action find
entity Q12188
relation P163
type Q14660
[ANSWER]
[{'concept': 'Q13220204'}, 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?c ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?f ) WHERE { resource:Q12188 property:P163 ?u . ?u rdf:type ontology:Q14660 } } . FILTER ( ?j < ?f ) . { SELECT DISTINCT ?q ( COUNT ( ?l ) AS ?j ) WHERE { ?q property:P163 ?l . ?q rdf:type ontology:Q14660 . ?l rdf:type ontology:Q13220204 } GROUP BY ?q } }
0
action count
action less
action find_tuple_counts
relation flag
type flag
type second-level administrative country subdivision
action count
action filter_type
action find
entity flag of Brittany
relation flag
type flag
[{'concept': 'second-level administrative country subdivision'}, 'flag', {'concept': 'flag'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?c ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?f ) WHERE { resource:flag_of_Brittany property:flag ?u . ?u rdf:type ontology:flag } } . FILTER ( ?j < ?f ) . { SELECT DISTINCT ?q ( COUNT ( ?l ) AS ?j ) WHERE { ?q property:flag ?l . ?q rdf:type ontology:flag . ?l rdf:type ontology:second-level_administrative_country_subdivision } GROUP BY ?q } }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q12188
P800 P21
Q502895
USER
Which people have flag of Brittany as their notable work and are a male ?
AND((c(Q502895),P800,Q12188), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q12188
relation P800
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P800', 'Q12188'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?o WHERE { ?o property:P800 resource:Q12188 . ?o property:P21 resource:Q6581097 . ?o rdf:type ontology:Q502895 }
male flag of Brittany
action filter_type
action intersection
action find_reverse
entity flag of Brittany
relation notable work
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'notable work', 'flag of Brittany'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?o WHERE { ?o property:notable_work resource:flag_of_Brittany . ?o property:gender resource:male . ?o rdf:type ontology:common_name }
[]
common name
Q3324644
SYSTEM
Morvan Marchal
Q3324644
AND((c(Q502895),P800,Q12188), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q12188
relation P800
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWER] have flag of Brittany as their notable work and are a male
{'AND': [[{'concept': 'Q502895'}, 'P800', 'Q12188'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?o WHERE { ?o property:P800 resource:Q12188 . ?o property:P21 resource:Q6581097 . ?o rdf:type ontology:Q502895 }
Morvan Marchal
Morvan Marchal have flag of Brittany as their notable work and are a male
Morvan Marchal
action filter_type
action intersection
action find_reverse
entity flag of Brittany
relation notable work
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'notable work', 'flag of Brittany'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?o WHERE { ?o property:notable_work resource:flag_of_Brittany . ?o property:gender resource:male . ?o rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q3324644 Q627223
P27
Q15617994
USER
Is Morvan Marchal an inhabitant of Briesen ?
(Q3324644,P27,Q627223)
action is_in
entity Q627223
action find
entity Q3324644
relation P27
['Q3324644', 'P27', 'Q627223']
ASK WHERE { resource:Q3324644 property:P27 resource:Q627223 }
Morvan Marchal Briesen
action is_in
entity Briesen
action find
entity Morvan Marchal
relation country of citizenship
['Morvan Marchal', 'country of citizenship', 'Briesen']
ASK WHERE { resource:Morvan_Marchal property:country_of_citizenship resource:Briesen }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q3324644,P27,Q627223)
action is_in
entity Q627223
action find
entity Q3324644
relation P27
[ANSWER]
['Q3324644', 'P27', 'Q627223']
ASK WHERE { resource:Q3324644 property:P27 resource:Q627223 }
No
action is_in
entity Briesen
action find
entity Morvan Marchal
relation country of citizenship
['Morvan Marchal', 'country of citizenship', 'Briesen']
ASK WHERE { resource:Morvan_Marchal property:country_of_citizenship resource:Briesen }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q83278 Q145
P1001
Q15617994
USER
Does United Kingdom belong to jurisdiction of flag of the United Kingdom ?
(Q83278,P1001,Q145)
action is_in
entity Q145
action find
entity Q83278
relation P1001
['Q83278', 'P1001', 'Q145']
ASK WHERE { resource:Q83278 property:P1001 resource:Q145 }
flag of the United Kingdom United Kingdom
action is_in
entity United Kingdom
action find
entity flag of the United Kingdom
relation applies to jurisdiction
['flag of the United Kingdom', 'applies to jurisdiction', 'United Kingdom']
ASK WHERE { resource:flag_of_the_United_Kingdom property:applies_to_jurisdiction resource:United_Kingdom }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q83278,P1001,Q145)
action is_in
entity Q145
action find
entity Q83278
relation P1001
[ANSWER]
['Q83278', 'P1001', 'Q145']
ASK WHERE { resource:Q83278 property:P1001 resource:Q145 }
Yes
action is_in
entity United Kingdom
action find
entity flag of the United Kingdom
relation applies to jurisdiction
['flag of the United Kingdom', 'applies to jurisdiction', 'United Kingdom']
ASK WHERE { resource:flag_of_the_United_Kingdom property:applies_to_jurisdiction resource:United_Kingdom }
[]