Simple Question (Direct)
Simple Question
Q5945159
P27
Q15617994
USER
Which administrative territory does José Rodríguez belong to ?
(Q5945159,P27,c(Q15617994))
action filter_type
action find
entity Q5945159
relation P27
type Q15617994
['Q5945159', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { resource:Q5945159 property:P27 ?h . ?h rdf:type ontology:Q15617994 }
José Rodríguez
action filter_type
action find
entity José Rodríguez
relation country of citizenship
type designation for an administrative territorial entity
['José Rodríguez', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:José_Rodríguez property:country_of_citizenship ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q96
SYSTEM
Mexico
Q96
(Q5945159,P27,c(Q15617994))
action filter_type
action find
entity Q5945159
relation P27
type Q15617994
José Rodríguez belongs to [ANSWER]
['Q5945159', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { resource:Q5945159 property:P27 ?h . ?h rdf:type ontology:Q15617994 }
Mexico
José Rodríguez belongs to Mexico
Mexico
action filter_type
action find
entity José Rodríguez
relation country of citizenship
type designation for an administrative territorial entity
['José Rodríguez', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:José_Rodríguez property:country_of_citizenship ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5945159
P1412
Q34770
USER
Which language is spoken by that person ?
(Q96,P1412,c(Q34770))
action filter_type
action find
entity Q5945159
relation P1412
type Q34770
['Q96', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?g WHERE { resource:Q5945159 property:P1412 ?g . ?g rdf:type ontology:Q34770 }
José Rodríguez
action filter_type
action find
entity José Rodríguez
relation languages spoken, written or signed
type language
['Mexico', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?g WHERE { resource:José_Rodríguez property:languages_spoken,_written_or_signed ?g . ?g rdf:type ontology:language }
[]
language
Q1321
SYSTEM
Spanish
Q1321
(Q96,P1412,c(Q34770))
action filter_type
action find
entity Q5945159
relation P1412
type Q34770
[ANSWER] is spoken by that person
['Q96', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?g WHERE { resource:Q5945159 property:P1412 ?g . ?g rdf:type ontology:Q34770 }
Spanish
Spanish is spoken by that person
Spanish
action filter_type
action find
entity José Rodríguez
relation languages spoken, written or signed
type language
['Mexico', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?g WHERE { resource:José_Rodríguez property:languages_spoken,_written_or_signed ?g . ?g rdf:type ontology:language }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q1321 Q1604405
P1412
Q502895
USER
Does Helmuth Greiner speak that language ?
(Q1604405,P1412,Q1321)
action is_in
entity Q1604405
action find
entity Q1321
relation P1412
['Q1604405', 'P1412', 'Q1321']
ASK WHERE { resource:Q1321 property:P1412 resource:Q1604405 }
Spanish Helmuth Greiner
action is_in
entity Helmuth Greiner
action find
entity Spanish
relation languages spoken, written or signed
['Helmuth Greiner', 'languages spoken, written or signed', 'Spanish']
ASK WHERE { resource:Spanish property:languages_spoken,_written_or_signed resource:Helmuth_Greiner }
[]
common name
SYSTEM
NO
(Q1604405,P1412,Q1321)
action is_in
entity Q1604405
action find
entity Q1321
relation P1412
[ANSWER]
['Q1604405', 'P1412', 'Q1321']
ASK WHERE { resource:Q1321 property:P1412 resource:Q1604405 }
No
action is_in
entity Helmuth Greiner
action find
entity Spanish
relation languages spoken, written or signed
['Helmuth Greiner', 'languages spoken, written or signed', 'Spanish']
ASK WHERE { resource:Spanish property:languages_spoken,_written_or_signed resource:Helmuth_Greiner }
[]
Logical Reasoning (All)
Logical|Difference|Multiple_Relation
Q382049 Q96
P47 P27
Q15617994
USER
Which administrative territories are adjacent to Mexico and are not the countries of citizenship of John Thomas Dunlop ?
AND((Q96,P47,c(Q15617994)), NOT((Q382049,P27,c(Q15617994))))
action filter_type
action difference
action find
entity Q96
relation P47
action find
entity Q382049
relation P27
type Q15617994
{'AND': [['Q96', 'P47', {'concept': 'Q15617994'}], {'NOT': [['Q382049', 'P27', {'concept': 'Q15617994'}]]}]}
SELECT DISTINCT ?u WHERE { FILTER NOT EXISTS { resource:Q382049 property:P27 ?u } . resource:Q96 property:P47 ?u . ?u rdf:type ontology:Q15617994 }
John Thomas Dunlop Mexico
action filter_type
action difference
action find
entity Mexico
relation shares border with
action find
entity John Thomas Dunlop
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Mexico', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], {'NOT': [['John Thomas Dunlop', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}]}
SELECT DISTINCT ?u WHERE { FILTER NOT EXISTS { resource:John_Thomas_Dunlop property:country_of_citizenship ?u } . resource:Mexico property:shares_border_with ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q774 Q242
SYSTEM
Guatemala, Belize
Q774 Q242
AND((Q96,P47,c(Q15617994)), NOT((Q382049,P27,c(Q15617994))))
action filter_type
action difference
action find
entity Q96
relation P47
action find
entity Q382049
relation P27
type Q15617994
[ANSWERS] are adjacent to Mexico and are not the countries of citizenship of John Thomas Dunlop
{'AND': [['Q96', 'P47', {'concept': 'Q15617994'}], {'NOT': [['Q382049', 'P27', {'concept': 'Q15617994'}]]}]}
SELECT DISTINCT ?u WHERE { FILTER NOT EXISTS { resource:Q382049 property:P27 ?u } . resource:Q96 property:P47 ?u . ?u rdf:type ontology:Q15617994 }
Guatemala Belize
Guatemala and Belize are adjacent to Mexico and are not the countries of citizenship of John Thomas Dunlop
Guatemala Belize
action filter_type
action difference
action find
entity Mexico
relation shares border with
action find
entity John Thomas Dunlop
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Mexico', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], {'NOT': [['John Thomas Dunlop', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}]}
SELECT DISTINCT ?u WHERE { FILTER NOT EXISTS { resource:John_Thomas_Dunlop property:country_of_citizenship ?u } . resource:Mexico property:shares_border_with ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P361
Q1048835 Q49447 Q15617994
USER
How many administrative territories are parts of approximately 1 political territories and world views ?
(c(Q15617994),P361,c(Q1048835)|c(Q49447))
action count
action approx
action union
action find_tuple_counts
relation P361
type Q15617994
type Q1048835
action find_tuple_counts
relation P361
type Q15617994
type Q49447
value 1
[{'concept': 'Q15617994'}, 'P361', [{'concept': 'Q1048835'}, {'concept': 'Q49447'}]]
SELECT DISTINCT ( COUNT ( ?m ) AS ?b ) WHERE { FILTER ( ?o = 1 ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?o ) ?m WHERE { VALUES ( ?t ) { ( ontology:Q1048835 ) ( ontology:Q49447 ) } . ?e rdf:type ?t } GROUP BY ?m } }
action count
action approx
action union
action find_tuple_counts
relation part of
type designation for an administrative territorial entity
type political territorial entity
action find_tuple_counts
relation part of
type designation for an administrative territorial entity
type world view
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'part of', [{'concept': 'political territorial entity'}, {'concept': 'world view'}]]
SELECT DISTINCT ( COUNT ( ?m ) AS ?b ) WHERE { FILTER ( ?o = 1 ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?o ) ?m WHERE { VALUES ( ?t ) { ( ontology:political_territorial_entity ) ( ontology:world_view ) } . ?e rdf:type ?t } GROUP BY ?m } }
[]
political territorial entity world view designation for an administrative territorial entity
SYSTEM
12
Q184864 Q676178 Q706938 Q554282 Q561223 Q640310 Q3773354 Q625844 Q624292 Q252916 Q623929 Q632429
(c(Q15617994),P361,c(Q1048835)|c(Q49447))
action count
action approx
action union
action find_tuple_counts
relation P361
type Q15617994
type Q1048835
action find_tuple_counts
relation P361
type Q15617994
type Q49447
value 1
[ANSWER]
[{'concept': 'Q15617994'}, 'P361', [{'concept': 'Q1048835'}, {'concept': 'Q49447'}]]
SELECT DISTINCT ( COUNT ( ?m ) AS ?b ) WHERE { FILTER ( ?o = 1 ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?o ) ?m WHERE { VALUES ( ?t ) { ( ontology:Q1048835 ) ( ontology:Q49447 ) } . ?e rdf:type ?t } GROUP BY ?m } }
Megara Viereck Werder Ferdinandshof Lancken-Granitz Buckautal Alagonia Görzke Wenzlow administrative quarter Gräben Hinrichshagen
12
action count
action approx
action union
action find_tuple_counts
relation part of
type designation for an administrative territorial entity
type political territorial entity
action find_tuple_counts
relation part of
type designation for an administrative territorial entity
type world view
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'part of', [{'concept': 'political territorial entity'}, {'concept': 'world view'}]]
SELECT DISTINCT ( COUNT ( ?m ) AS ?b ) WHERE { FILTER ( ?o = 1 ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?o ) ?m WHERE { VALUES ( ?t ) { ( ontology:political_territorial_entity ) ( ontology:world_view ) } . ?e rdf:type ?t } GROUP BY ?m } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5945159
P607
Q5569988
USER
What was was José Rodríguez a part of ?
(Q5945159,P607,c(Q5569988))
action filter_type
action find
entity Q5945159
relation P607
type Q5569988
['Q5945159', 'P607', {'concept': 'Q5569988'}]
SELECT DISTINCT ?z WHERE { resource:Q5945159 property:P607 ?z . ?z rdf:type ontology:Q5569988 }
José Rodríguez
action filter_type
action find
entity José Rodríguez
relation conflict
type glittering generality
['José Rodríguez', 'conflict', {'concept': 'glittering generality'}]
SELECT DISTINCT ?z WHERE { resource:José_Rodríguez property:conflict ?z . ?z rdf:type ontology:glittering_generality }
[]
glittering generality
Q214426
SYSTEM
Revolucion mexicana
Q214426
(Q5945159,P607,c(Q5569988))
action filter_type
action find
entity Q5945159
relation P607
type Q5569988
José Rodríguez was a part of [ANSWER]
['Q5945159', 'P607', {'concept': 'Q5569988'}]
SELECT DISTINCT ?z WHERE { resource:Q5945159 property:P607 ?z . ?z rdf:type ontology:Q5569988 }
Revolucion mexicana
José Rodríguez was a part of Revolucion mexicana
Revolucion mexicana
action filter_type
action find
entity José Rodríguez
relation conflict
type glittering generality
['José Rodríguez', 'conflict', {'concept': 'glittering generality'}]
SELECT DISTINCT ?z WHERE { resource:José_Rodríguez property:conflict ?z . ?z rdf:type ontology:glittering_generality }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q35
P530
Q15617994 Q1048835
USER
How many political territories have ambassadorial relations with lesser number of administrative territories than Denmark ?
(c(Q1048835),P530,c(Q15617994))
action count
action less
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q35
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?c ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?f ) AS ?l ) WHERE { ?m property:P530 ?f . ?m rdf:type ontology:Q1048835 . ?f rdf:type ontology:Q15617994 } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?s ) WHERE { ?r rdf:type ontology:Q1048835 . resource:Q35 property:P530 ?r } } . FILTER ( ?l < ?s ) }
Denmark
action count
action less
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 Denmark
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?c ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?f ) AS ?l ) WHERE { ?m property:diplomatic_relation ?f . ?m rdf:type ontology:political_territorial_entity . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?s ) WHERE { ?r rdf:type ontology:political_territorial_entity . resource:Denmark property:diplomatic_relation ?r } } . FILTER ( ?l < ?s ) }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
8
Q1000 Q781 Q778 Q769 Q685 Q691 Q664 Q766
(c(Q1048835),P530,c(Q15617994))
action count
action less
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q35
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?c ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?f ) AS ?l ) WHERE { ?m property:P530 ?f . ?m rdf:type ontology:Q1048835 . ?f rdf:type ontology:Q15617994 } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?s ) WHERE { ?r rdf:type ontology:Q1048835 . resource:Q35 property:P530 ?r } } . FILTER ( ?l < ?s ) }
Gabon Antigua and Barbuda The Bahamas Grenada Solomon Islands Papua New Guinea New Zealand Jamaica
8
action count
action less
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 Denmark
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?c ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?f ) AS ?l ) WHERE { ?m property:diplomatic_relation ?f . ?m rdf:type ontology:political_territorial_entity . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?s ) WHERE { ?r rdf:type ontology:political_territorial_entity . resource:Denmark property:diplomatic_relation ?r } } . FILTER ( ?l < ?s ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic relationships with approximately 16 administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 16
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?c ) AS ?m ) WHERE { ?w property:P530 ?c . ?w rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q15617994 } GROUP BY ?w } . FILTER ( ?m = 16 ) }
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 16
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?c ) AS ?m ) WHERE { ?w property:diplomatic_relation ?c . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?w } . FILTER ( ?m = 16 ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q142 Q148 Q801
SYSTEM
France, People's Republic of China, Israel
Q801 Q805 Q142 Q145 Q148 Q403 Q43 Q17 Q79 Q1011
(c(Q15617994),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 16
[ANSWERS] have diplomatic relationships with approximately 16 administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?c ) AS ?m ) WHERE { ?w property:P530 ?c . ?w rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q15617994 } GROUP BY ?w } . FILTER ( ?m = 16 ) }
Israel Yemen France United Kingdom People's Republic of China Serbia Turkey Japan Egypt Cape Verde
France, People's Republic of China and Israel have diplomatic relationships with approximately 16 administrative territories
France People's Republic of China Israel
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 16
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?c ) AS ?m ) WHERE { ?w property:diplomatic_relation ?c . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?w } . FILTER ( ?m = 16 ) }
[]