Simple Question (Direct)
Simple Question
Q6076821
P106
Q28640
USER
Which profession has Isaac Musumba as his/her 's career ?
(Q6076821,P106,c(Q28640))
action filter_type
action find
entity Q6076821
relation P106
type Q28640
['Q6076821', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?v WHERE { resource:Q6076821 property:P106 ?v . ?v rdf:type ontology:Q28640 }
Isaac Musumba
action filter_type
action find
entity Isaac Musumba
relation occupation
type profession
['Isaac Musumba', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?v WHERE { resource:Isaac_Musumba property:occupation ?v . ?v rdf:type ontology:profession }
[]
profession
Q40348
SYSTEM
lawyer
Q40348
(Q6076821,P106,c(Q28640))
action filter_type
action find
entity Q6076821
relation P106
type Q28640
The [ANSWER] has Isaac Musumba as his/her 's career
['Q6076821', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?v WHERE { resource:Q6076821 property:P106 ?v . ?v rdf:type ontology:Q28640 }
lawyer
The lawyer has Isaac Musumba as his/her 's career
lawyer
action filter_type
action find
entity Isaac Musumba
relation occupation
type profession
['Isaac Musumba', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?v WHERE { resource:Isaac_Musumba property:occupation ?v . ?v rdf:type ontology:profession }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6076821
P19
Q15617994
USER
Which administrative territory is the birthplace of Isaac Musumba ?
(Q6076821,P19,c(Q15617994))
action filter_type
action find
entity Q6076821
relation P19
type Q15617994
['Q6076821', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { resource:Q6076821 property:P19 ?o . ?o rdf:type ontology:Q15617994 }
Isaac Musumba
action filter_type
action find
entity Isaac Musumba
relation place of birth
type designation for an administrative territorial entity
['Isaac Musumba', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Isaac_Musumba property:place_of_birth ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q1036
SYSTEM
Uganda
Q1036
(Q6076821,P19,c(Q15617994))
action filter_type
action find
entity Q6076821
relation P19
type Q15617994
Of [ANSWER] is the birthplace of Isaac Musumba
['Q6076821', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { resource:Q6076821 property:P19 ?o . ?o rdf:type ontology:Q15617994 }
Uganda
Of Uganda is the birthplace of Isaac Musumba
Uganda
action filter_type
action find
entity Isaac Musumba
relation place of birth
type designation for an administrative territorial entity
['Isaac Musumba', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Isaac_Musumba property:place_of_birth ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q17353132
Q15617994
USER
And how about Marita Metz-Becker?
(Q17353132,P19,c(Q15617994))
action filter_type
action find
entity Q17353132
relation P19
type Q15617994
['Q17353132', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q15617994 . resource:Q17353132 property:P19 ?b }
Marita Metz-Becker
action filter_type
action find
entity Marita Metz-Becker
relation place of birth
type designation for an administrative territorial entity
['Marita Metz-Becker', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Marita_Metz-Becker property:place_of_birth ?b }
[]
designation for an administrative territorial entity
Q622253
SYSTEM
Breitscheid
Q622253
(Q17353132,P19,c(Q15617994))
action filter_type
action find
entity Q17353132
relation P19
type Q15617994
[ANSWER]
['Q17353132', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q15617994 . resource:Q17353132 property:P19 ?b }
Breitscheid
Breitscheid
action filter_type
action find
entity Marita Metz-Becker
relation place of birth
type designation for an administrative territorial entity
['Marita Metz-Becker', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Marita_Metz-Becker property:place_of_birth ?b }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q622253 Q183
P17
Q1048835
USER
Is that administrative territory situated in Germany ?
(Q622253,P17,Q183)
action is_in
entity Q183
action find
entity Q622253
relation P17
['Q622253', 'P17', 'Q183']
ASK WHERE { resource:Q622253 property:P17 resource:Q183 }
Breitscheid Germany
action is_in
entity Germany
action find
entity Breitscheid
relation country
['Breitscheid', 'country', 'Germany']
ASK WHERE { resource:Breitscheid property:country resource:Germany }
[]
political territorial entity
SYSTEM
YES
(Q622253,P17,Q183)
action is_in
entity Q183
action find
entity Q622253
relation P17
[ANSWER]
['Q622253', 'P17', 'Q183']
ASK WHERE { resource:Q622253 property:P17 resource:Q183 }
Yes
action is_in
entity Germany
action find
entity Breitscheid
relation country
['Breitscheid', 'country', 'Germany']
ASK WHERE { resource:Breitscheid property:country resource:Germany }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P530
Q15617994 Q1048835 Q15617994
USER
Which administrative territories have a diplomatic relationship with around 25 political territories or administrative territories ?
(c(Q1048835)|c(Q15617994),P530,c(Q15617994))
action approx
action union
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
value 25
[[{'concept': 'Q1048835'}, {'concept': 'Q15617994'}], 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?b ) ?p WHERE { { ?y property:P530 ?p . ?p rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q1048835 } UNION { ?y property:P530 ?p . ?y rdf:type ontology:Q15617994 . ?p rdf:type ontology:Q15617994 } } GROUP BY ?p } . FILTER ( ?b = 25 ) }
action approx
action union
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 25
[[{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}], 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?b ) ?p WHERE { { ?y property:diplomatic_relation ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:political_territorial_entity } UNION { ?y property:diplomatic_relation ?p . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?p } . FILTER ( ?b = 25 ) }
[]
designation for an administrative territorial entity political territorial entity designation for an administrative territorial entity
Q30 Q159 Q142
SYSTEM
United States of America, Russia, France
Q801 Q805 Q142 Q148 Q159 Q30
(c(Q1048835)|c(Q15617994),P530,c(Q15617994))
action approx
action union
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
value 25
[ANSWERS] have a diplomatic relationship with around 25 political territories or administrative territories
[[{'concept': 'Q1048835'}, {'concept': 'Q15617994'}], 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?b ) ?p WHERE { { ?y property:P530 ?p . ?p rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q1048835 } UNION { ?y property:P530 ?p . ?y rdf:type ontology:Q15617994 . ?p rdf:type ontology:Q15617994 } } GROUP BY ?p } . FILTER ( ?b = 25 ) }
Israel Yemen France People's Republic of China Russia United States of America
United States of America, Russia and France have a diplomatic relationship with around 25 political territories or administrative territories
United States of America Russia France
action approx
action union
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 25
[[{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}], 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?b ) ?p WHERE { { ?y property:diplomatic_relation ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:political_territorial_entity } UNION { ?y property:diplomatic_relation ?p . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?p } . FILTER ( ?b = 25 ) }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q30 Q159 Q142
P530
Q1048835
USER
What political territories have diplomatic relationships with United States of America, Russia and France ?
(Q30,P530,c(Q1048835)) (Q159,P530,c(Q1048835)) (Q142,P530,c(Q1048835))
action union
action filter_type
action find
entity Q30
relation P530
type Q1048835
action filter_type
action find
entity Q159
relation P530
type Q1048835
action filter_type
action find
entity Q142
relation P530
type Q1048835
['Q30', 'P530', {'concept': 'Q1048835'}] ['Q159', 'P530', {'concept': 'Q1048835'}] ['Q142', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?m WHERE { ?q property:P530 ?m . VALUES ( ?q ) { ( resource:Q30 ) ( resource:Q159 ) } }
United States of America Russia France
action union
action filter_type
action find
entity United States of America
relation diplomatic relation
type political territorial entity
action filter_type
action find
entity Russia
relation diplomatic relation
type political territorial entity
action filter_type
action find
entity France
relation diplomatic relation
type political territorial entity
['United States of America', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Russia', 'diplomatic relation', {'concept': 'political territorial entity'}] ['France', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?m WHERE { ?q property:diplomatic_relation ?m . VALUES ( ?q ) { ( resource:United_States_of_America ) ( resource:Russia ) } }
[]
political territorial entity
Q183 Q183 Q183
SYSTEM
Germany
Q183 Q408 Q16 Q183 Q408 Q16 Q40 Q408 Q183
(Q30,P530,c(Q1048835)) (Q159,P530,c(Q1048835)) (Q142,P530,c(Q1048835))
action union
action filter_type
action find
entity Q30
relation P530
type Q1048835
action filter_type
action find
entity Q159
relation P530
type Q1048835
action filter_type
action find
entity Q142
relation P530
type Q1048835
[ANSWER], [ANSWER] and [ANSWER] have diplomatic relationships with United States of America, Russia and France
['Q30', 'P530', {'concept': 'Q1048835'}] ['Q159', 'P530', {'concept': 'Q1048835'}] ['Q142', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?m WHERE { ?q property:P530 ?m . VALUES ( ?q ) { ( resource:Q30 ) ( resource:Q159 ) } }
Germany Australia Canada Germany Australia Canada Austria Australia Germany
Germany, Germany and Germany have diplomatic relationships with United States of America, Russia and France
Germany Germany Germany
action union
action filter_type
action find
entity United States of America
relation diplomatic relation
type political territorial entity
action filter_type
action find
entity Russia
relation diplomatic relation
type political territorial entity
action filter_type
action find
entity France
relation diplomatic relation
type political territorial entity
['United States of America', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Russia', 'diplomatic relation', {'concept': 'political territorial entity'}] ['France', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?m WHERE { ?q property:diplomatic_relation ?m . VALUES ( ?q ) { ( resource:United_States_of_America ) ( resource:Russia ) } }
[]