Simple Question (Direct)
Simple Question
Q10386957
P21
Q290
USER
What is the sex of Jimmy Dimmock ?
(Q10386957,P21,c(Q290))
action filter_type
action find
entity Q10386957
relation P21
type Q290
['Q10386957', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q290 . resource:Q10386957 property:P21 ?p }
Jimmy Dimmock
action filter_type
action find
entity Jimmy Dimmock
relation gender
type sex
['Jimmy Dimmock', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:sex . resource:Jimmy_Dimmock property:gender ?p }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q10386957,P21,c(Q290))
action filter_type
action find
entity Q10386957
relation P21
type Q290
The sex of Jimmy Dimmock is the [ANSWER]
['Q10386957', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q290 . resource:Q10386957 property:P21 ?p }
male
The sex of Jimmy Dimmock is the male
male
action filter_type
action find
entity Jimmy Dimmock
relation gender
type sex
['Jimmy Dimmock', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:sex . resource:Jimmy_Dimmock property:gender ?p }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q10386957 Q1065053
P21
Q290
USER
How many sexes are the sex of Jimmy Dimmock or Our Lady of Mount Carmel ?
(Q10386957,P21,c(Q290)) (Q1065053,P21,c(Q290))
action count
action union
action filter_type
action find
entity Q10386957
relation P21
type Q290
action filter_type
action find
entity Q1065053
relation P21
type Q290
['Q10386957', 'P21', {'concept': 'Q290'}] ['Q1065053', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?z ) WHERE { VALUES ( ?w ) { ( resource:Q1065053 ) ( resource:Q10386957 ) } . ?w property:P21 ?x }
Jimmy Dimmock Our Lady of Mount Carmel
action count
action union
action filter_type
action find
entity Jimmy Dimmock
relation gender
type sex
action filter_type
action find
entity Our Lady of Mount Carmel
relation gender
type sex
['Jimmy Dimmock', 'gender', {'concept': 'sex'}] ['Our Lady of Mount Carmel', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?z ) WHERE { VALUES ( ?w ) { ( resource:Our_Lady_of_Mount_Carmel ) ( resource:Jimmy_Dimmock ) } . ?w property:gender ?x }
[]
sex
SYSTEM
2
Q6581097 Q6581072
(Q10386957,P21,c(Q290)) (Q1065053,P21,c(Q290))
action count
action union
action filter_type
action find
entity Q10386957
relation P21
type Q290
action filter_type
action find
entity Q1065053
relation P21
type Q290
[ANSWER]
['Q10386957', 'P21', {'concept': 'Q290'}] ['Q1065053', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?z ) WHERE { VALUES ( ?w ) { ( resource:Q1065053 ) ( resource:Q10386957 ) } . ?w property:P21 ?x }
male female
2
action count
action union
action filter_type
action find
entity Jimmy Dimmock
relation gender
type sex
action filter_type
action find
entity Our Lady of Mount Carmel
relation gender
type sex
['Jimmy Dimmock', 'gender', {'concept': 'sex'}] ['Our Lady of Mount Carmel', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?z ) WHERE { VALUES ( ?w ) { ( resource:Our_Lady_of_Mount_Carmel ) ( resource:Jimmy_Dimmock ) } . ?w property:gender ?x }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q10386957
P641
Q349
USER
Which sport did Jimmy Dimmock participate in ?
(Q10386957,P641,c(Q349))
action filter_type
action find
entity Q10386957
relation P641
type Q349
['Q10386957', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q349 . resource:Q10386957 property:P641 ?r }
Jimmy Dimmock
action filter_type
action find
entity Jimmy Dimmock
relation sport
type sport
['Jimmy Dimmock', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:sport . resource:Jimmy_Dimmock property:sport ?r }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q10386957,P641,c(Q349))
action filter_type
action find
entity Q10386957
relation P641
type Q349
Jimmy Dimmock participated in [ANSWER]
['Q10386957', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q349 . resource:Q10386957 property:P641 ?r }
association football
Jimmy Dimmock participated in association football
association football
action filter_type
action find
entity Jimmy Dimmock
relation sport
type sport
['Jimmy Dimmock', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:sport . resource:Jimmy_Dimmock property:sport ?r }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q16193717 Q10386957
P27
Q15617994
USER
Which administrative territories are Jimmy Dimmock and David Llewellyn a civilian of ?
AND((Q10386957,P27,c(Q15617994)), (Q16193717,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q10386957
relation P27
action find
entity Q16193717
relation P27
type Q15617994
{'AND': [['Q10386957', 'P27', {'concept': 'Q15617994'}], ['Q16193717', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?i WHERE { resource:Q10386957 property:P27 ?i . resource:Q16193717 property:P27 ?i . ?i rdf:type ontology:Q15617994 }
David Llewellyn Jimmy Dimmock
action filter_type
action intersection
action find
entity Jimmy Dimmock
relation country of citizenship
action find
entity David Llewellyn
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Jimmy Dimmock', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['David Llewellyn', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?i WHERE { resource:Jimmy_Dimmock property:country_of_citizenship ?i . resource:David_Llewellyn property:country_of_citizenship ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
AND((Q10386957,P27,c(Q15617994)), (Q16193717,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q10386957
relation P27
action find
entity Q16193717
relation P27
type Q15617994
[ANSWER] is Jimmy Dimmock and David Llewellyn a civilian of
{'AND': [['Q10386957', 'P27', {'concept': 'Q15617994'}], ['Q16193717', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?i WHERE { resource:Q10386957 property:P27 ?i . resource:Q16193717 property:P27 ?i . ?i rdf:type ontology:Q15617994 }
United Kingdom
United Kingdom is Jimmy Dimmock and David Llewellyn a civilian of
United Kingdom
action filter_type
action intersection
action find
entity Jimmy Dimmock
relation country of citizenship
action find
entity David Llewellyn
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Jimmy Dimmock', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['David Llewellyn', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?i WHERE { resource:Jimmy_Dimmock property:country_of_citizenship ?i . resource:David_Llewellyn property:country_of_citizenship ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q12667204 Q10386957
P27 P17
Q15617994
USER
Which administrative territories are the native countriesof Jimmy Dimmock or do Olgava belong to ?
OR((Q10386957,P27,c(Q15617994)), (Q12667204,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q10386957
relation P27
action find
entity Q12667204
relation P17
type Q15617994
{'OR': [['Q10386957', 'P27', {'concept': 'Q15617994'}], ['Q12667204', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Q10386957 property:P27 ?i } UNION { resource:Q12667204 property:P17 ?i } } . ?i rdf:type ontology:Q15617994 }
Olgava Jimmy Dimmock
action filter_type
action union
action find
entity Jimmy Dimmock
relation country of citizenship
action find
entity Olgava
relation country
type designation for an administrative territorial entity
{'OR': [['Jimmy Dimmock', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Olgava', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Jimmy_Dimmock property:country_of_citizenship ?i } UNION { resource:Olgava property:country ?i } } . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q37 Q145
SYSTEM
Lithuania, United Kingdom
Q37 Q145
OR((Q10386957,P27,c(Q15617994)), (Q12667204,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q10386957
relation P27
action find
entity Q12667204
relation P17
type Q15617994
[ANSWERS] are the native countriesof Jimmy Dimmock or do Olgava belong to
{'OR': [['Q10386957', 'P27', {'concept': 'Q15617994'}], ['Q12667204', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Q10386957 property:P27 ?i } UNION { resource:Q12667204 property:P17 ?i } } . ?i rdf:type ontology:Q15617994 }
Lithuania United Kingdom
Lithuania and United Kingdom are the native countriesof Jimmy Dimmock or do Olgava belong to
Lithuania United Kingdom
action filter_type
action union
action find
entity Jimmy Dimmock
relation country of citizenship
action find
entity Olgava
relation country
type designation for an administrative territorial entity
{'OR': [['Jimmy Dimmock', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Olgava', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Jimmy_Dimmock property:country_of_citizenship ?i } UNION { resource:Olgava property:country ?i } } . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q17
P530
Q15617994 Q15617994
USER
How many administrative territories have a diplomatic relationship with around the same number of administrative territories as Japan ?
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q17
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?s ) WHERE { resource:Q17 property:P530 ?b . ?b rdf:type ontology:Q15617994 } } . FILTER ( ?z = ?s ) . { SELECT DISTINCT ?r ( COUNT ( ?j ) AS ?z ) WHERE { ?r property:P530 ?j . ?r rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q15617994 } GROUP BY ?r } }
Japan
action count
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Japan
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?s ) WHERE { resource:Japan property:diplomatic_relation ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?z = ?s ) . { SELECT DISTINCT ?r ( COUNT ( ?j ) AS ?z ) WHERE { ?r property:diplomatic_relation ?j . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?r } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
38
Q805 Q668 Q414 Q142 Q145 Q148 Q37 Q711 Q252 Q399 Q403 Q258 Q43 Q41 Q796 Q794 Q889 Q884 Q881 Q822 Q241 Q32 Q31 Q34 Q423 Q27 Q843 Q227 Q222 Q347 Q17 Q1033 Q213 Q916 Q79 Q1016 Q1011 Q953
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q17
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?s ) WHERE { resource:Q17 property:P530 ?b . ?b rdf:type ontology:Q15617994 } } . FILTER ( ?z = ?s ) . { SELECT DISTINCT ?r ( COUNT ( ?j ) AS ?z ) WHERE { ?r property:P530 ?j . ?r rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q15617994 } GROUP BY ?r } }
Yemen India Argentina France United Kingdom People's Republic of China Lithuania Mongolia Indonesia Armenia Serbia South Africa Turkey Greece Iraq Iran Afghanistan South Korea Vietnam Lebanon Cuba Luxembourg Belgium Sweden North Korea Ireland Pakistan Azerbaijan Albania Liechtenstein Japan Nigeria Czech Republic Angola Egypt Libya Cape Verde Zambia
38
action count
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Japan
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?s ) WHERE { resource:Japan property:diplomatic_relation ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?z = ?s ) . { SELECT DISTINCT ?r ( COUNT ( ?j ) AS ?z ) WHERE { ?r property:diplomatic_relation ?j . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?r } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q1048835 Q15617994
USER
Which political territories have diplomatic relationships with min number of administrative territories ?
(c(Q15617994),P530,Q766)
action argmin
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[{'concept': 'Q15617994'}, 'P530', 'Q766']
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MIN ( ?y ) AS ?o ) { SELECT DISTINCT ?k ( COUNT ( ?a ) AS ?y ) WHERE { ?a rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q1048835 . ?k property:P530 ?a } GROUP BY ?k } } . { SELECT DISTINCT ?r ( COUNT ( ?d ) AS ?h ) WHERE { ?d rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q1048835 . ?r property:P530 ?d } GROUP BY ?r } . FILTER ( ?h = ?o ) }
action argmin
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Jamaica']
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MIN ( ?y ) AS ?o ) { SELECT DISTINCT ?k ( COUNT ( ?a ) AS ?y ) WHERE { ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:political_territorial_entity . ?k property:diplomatic_relation ?a } GROUP BY ?k } } . { SELECT DISTINCT ?r ( COUNT ( ?d ) AS ?h ) WHERE { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:political_territorial_entity . ?r property:diplomatic_relation ?d } GROUP BY ?r } . FILTER ( ?h = ?o ) }
[]
political territorial entity designation for an administrative territorial entity
Q685 Q691
SYSTEM
Solomon Islands, Papua New Guinea
Q685 Q691
(c(Q15617994),P530,Q766)
action argmin
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[ANSWERS] have diplomatic relationships with min number of administrative territories
[{'concept': 'Q15617994'}, 'P530', 'Q766']
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MIN ( ?y ) AS ?o ) { SELECT DISTINCT ?k ( COUNT ( ?a ) AS ?y ) WHERE { ?a rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q1048835 . ?k property:P530 ?a } GROUP BY ?k } } . { SELECT DISTINCT ?r ( COUNT ( ?d ) AS ?h ) WHERE { ?d rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q1048835 . ?r property:P530 ?d } GROUP BY ?r } . FILTER ( ?h = ?o ) }
Solomon Islands Papua New Guinea
Solomon Islands and Papua New Guinea have diplomatic relationships with min number of administrative territories
Solomon Islands Papua New Guinea
action argmin
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Jamaica']
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MIN ( ?y ) AS ?o ) { SELECT DISTINCT ?k ( COUNT ( ?a ) AS ?y ) WHERE { ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:political_territorial_entity . ?k property:diplomatic_relation ?a } GROUP BY ?k } } . { SELECT DISTINCT ?r ( COUNT ( ?d ) AS ?h ) WHERE { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:political_territorial_entity . ?r property:diplomatic_relation ?d } GROUP BY ?r } . FILTER ( ?h = ?o ) }
[]