Simple Question (Direct)
Simple Question
Q1458452
P102
Q7210356
USER
Which parties are Friedrich Bilabel affiliated with ?
(Q1458452,P102,c(Q7210356))
action filter_type
action find
entity Q1458452
relation P102
type Q7210356
['Q1458452', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?b WHERE { resource:Q1458452 property:P102 ?b . ?b rdf:type ontology:Q7210356 }
Friedrich Bilabel
action filter_type
action find
entity Friedrich Bilabel
relation member of political party
type political organization
['Friedrich Bilabel', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?b WHERE { resource:Friedrich_Bilabel property:member_of_political_party ?b . ?b rdf:type ontology:political_organization }
[]
political organization
Q7320 Q158227
SYSTEM
Nazi Party, German National People's Party
Q7320 Q158227
(Q1458452,P102,c(Q7210356))
action filter_type
action find
entity Q1458452
relation P102
type Q7210356
Friedrich Bilabel are affiliated with [ANSWERS]
['Q1458452', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?b WHERE { resource:Q1458452 property:P102 ?b . ?b rdf:type ontology:Q7210356 }
Nazi Party German National People's Party
Friedrich Bilabel are affiliated with Nazi Party and German National People's Party
Nazi Party German National People's Party
action filter_type
action find
entity Friedrich Bilabel
relation member of political party
type political organization
['Friedrich Bilabel', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?b WHERE { resource:Friedrich_Bilabel property:member_of_political_party ?b . ?b rdf:type ontology:political_organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1458452
P19
Q15617994
USER
Where was that person born ?
(Q7320,P19,c(Q15617994)) (Q158227,P19,c(Q15617994))
action filter_type
action find
entity Q1458452
relation P19
type Q15617994
['Q7320', 'P19', {'concept': 'Q15617994'}] ['Q158227', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { resource:Q1458452 property:P19 ?y . ?y rdf:type ontology:Q15617994 }
Friedrich Bilabel
action filter_type
action find
entity Friedrich Bilabel
relation place of birth
type designation for an administrative territorial entity
['Nazi Party', 'place of birth', {'concept': 'designation for an administrative territorial entity'}] ["German National People's Party", 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Friedrich_Bilabel property:place_of_birth ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q507194
SYSTEM
Friedberg
Q507194
(Q7320,P19,c(Q15617994)) (Q158227,P19,c(Q15617994))
action filter_type
action find
entity Q1458452
relation P19
type Q15617994
That person was born in [ANSWER]
['Q7320', 'P19', {'concept': 'Q15617994'}] ['Q158227', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { resource:Q1458452 property:P19 ?y . ?y rdf:type ontology:Q15617994 }
Friedberg
That person was born in Friedberg
Friedberg
action filter_type
action find
entity Friedrich Bilabel
relation place of birth
type designation for an administrative territorial entity
['Nazi Party', 'place of birth', {'concept': 'designation for an administrative territorial entity'}] ["German National People's Party", 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Friedrich_Bilabel property:place_of_birth ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P17
Q1048835
USER
How many political territories do that administrative territory belong to ?
(Q507194,P17,c(Q1048835))
action count
action filter_type
action find
entity Q507194
relation P17
type Q1048835
['Q507194', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?i ) WHERE { ?o rdf:type ontology:Q1048835 . resource:Q507194 property:P17 ?o }
action count
action filter_type
action find
entity Friedberg
relation country
type political territorial entity
['Friedberg', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?i ) WHERE { ?o rdf:type ontology:political_territorial_entity . resource:Friedberg property:country ?o }
[]
political territorial entity
SYSTEM
1
Q183
(Q507194,P17,c(Q1048835))
action count
action filter_type
action find
entity Q507194
relation P17
type Q1048835
[ANSWER]
['Q507194', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?i ) WHERE { ?o rdf:type ontology:Q1048835 . resource:Q507194 property:P17 ?o }
Germany
1
action count
action filter_type
action find
entity Friedberg
relation country
type political territorial entity
['Friedberg', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?i ) WHERE { ?o rdf:type ontology:political_territorial_entity . resource:Friedberg property:country ?o }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q1458452
P937
Q515 Q56061
USER
How many cities and administrative territories are the work locations of Friedrich Bilabel ?
(Q1458452,P937,c(Q515)) (Q1458452,P937,c(Q56061))
action count
action union
action filter_type
action find
entity Q1458452
relation P937
type Q515
action filter_type
action find
entity Q1458452
relation P937
type Q56061
['Q1458452', 'P937', {'concept': 'Q515'}] ['Q1458452', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?d ) WHERE { { ?i rdf:type ontology:Q56061 . resource:Q1458452 property:P937 ?i } UNION { ?i rdf:type ontology:Q515 . resource:Q1458452 property:P937 ?i } }
Friedrich Bilabel
action count
action union
action filter_type
action find
entity Friedrich Bilabel
relation work location
type city
action filter_type
action find
entity Friedrich Bilabel
relation work location
type administrative territorial entity
['Friedrich Bilabel', 'work location', {'concept': 'city'}] ['Friedrich Bilabel', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?d ) WHERE { { ?i rdf:type ontology:administrative_territorial_entity . resource:Friedrich_Bilabel property:work_location ?i } UNION { ?i rdf:type ontology:city . resource:Friedrich_Bilabel property:work_location ?i } }
[]
city administrative territorial entity
SYSTEM
2 cities and 1 administrative territories
Q2119 Q2966 Q7059
(Q1458452,P937,c(Q515)) (Q1458452,P937,c(Q56061))
action count
action union
action filter_type
action find
entity Q1458452
relation P937
type Q515
action filter_type
action find
entity Q1458452
relation P937
type Q56061
[ANSWER]
['Q1458452', 'P937', {'concept': 'Q515'}] ['Q1458452', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?d ) WHERE { { ?i rdf:type ontology:Q56061 . resource:Q1458452 property:P937 ?i } UNION { ?i rdf:type ontology:Q515 . resource:Q1458452 property:P937 ?i } }
Mannheim Heidelberg Bruchsal
2 cities and 1 administrative territories
action count
action union
action filter_type
action find
entity Friedrich Bilabel
relation work location
type city
action filter_type
action find
entity Friedrich Bilabel
relation work location
type administrative territorial entity
['Friedrich Bilabel', 'work location', {'concept': 'city'}] ['Friedrich Bilabel', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?d ) WHERE { { ?i rdf:type ontology:administrative_territorial_entity . resource:Friedrich_Bilabel property:work_location ?i } UNION { ?i rdf:type ontology:city . resource:Friedrich_Bilabel property:work_location ?i } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q1048835
USER
Which political territories have tactful political relations with atmost 32 administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action atmost
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 32
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?l ) AS ?a ) WHERE { ?n property:P530 ?l . ?n rdf:type ontology:Q1048835 . ?l rdf:type ontology:Q15617994 } GROUP BY ?n } . FILTER ( ?a <= 32 ) }
action atmost
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 32
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?l ) AS ?a ) WHERE { ?n property:diplomatic_relation ?l . ?n rdf:type ontology:political_territorial_entity . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?n } . FILTER ( ?a <= 32 ) }
[]
designation for an administrative territorial entity political territorial entity
Q35 Q40 Q664
SYSTEM
Denmark, Austria, New Zealand
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q664 Q766
(c(Q1048835),P530,c(Q15617994))
action atmost
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 32
[ANSWERS] have tactful political relations with atmost 32 administrative territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?l ) AS ?a ) WHERE { ?n property:P530 ?l . ?n rdf:type ontology:Q1048835 . ?l rdf:type ontology:Q15617994 } GROUP BY ?n } . FILTER ( ?a <= 32 ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea New Zealand Jamaica
Denmark, Austria and New Zealand have tactful political relations with atmost 32 administrative territories
Denmark Austria New Zealand
action atmost
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 32
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?l ) AS ?a ) WHERE { ?n property:diplomatic_relation ?l . ?n rdf:type ontology:political_territorial_entity . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?n } . FILTER ( ?a <= 32 ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q1644871
P530
Q1048835
USER
Do Carriches have diplomatic associations with those ones ?
(Q1644871,P530,Q35) (Q1644871,P530,Q40) (Q1644871,P530,Q664)
action is_in
entity prev_answer
action find
entity Q1644871
relation P530
['Q1644871', 'P530', 'Q35'] ['Q1644871', 'P530', 'Q40'] ['Q1644871', 'P530', 'Q664']
ASK WHERE { resource:Q1644871 property:P530 ?d . VALUES ( ?d ) { ( resource:Q1000 ) ( resource:Q40 ) ( resource:Q781 ) } }
Carriches
action is_in
entity prev_answer
action find
entity Carriches
relation diplomatic relation
['Carriches', 'diplomatic relation', 'Denmark'] ['Carriches', 'diplomatic relation', 'Austria'] ['Carriches', 'diplomatic relation', 'New Zealand']
ASK WHERE { resource:Carriches property:diplomatic_relation ?d . VALUES ( ?d ) { ( resource:Gabon ) ( resource:Austria ) ( resource:Antigua_and_Barbuda ) } }
[]
political territorial entity
SYSTEM
NO
(Q1644871,P530,Q35) (Q1644871,P530,Q40) (Q1644871,P530,Q664)
action is_in
entity prev_answer
action find
entity Q1644871
relation P530
[ANSWER]
['Q1644871', 'P530', 'Q35'] ['Q1644871', 'P530', 'Q40'] ['Q1644871', 'P530', 'Q664']
ASK WHERE { resource:Q1644871 property:P530 ?d . VALUES ( ?d ) { ( resource:Q1000 ) ( resource:Q40 ) ( resource:Q781 ) } }
No
action is_in
entity prev_answer
action find
entity Carriches
relation diplomatic relation
['Carriches', 'diplomatic relation', 'Denmark'] ['Carriches', 'diplomatic relation', 'Austria'] ['Carriches', 'diplomatic relation', 'New Zealand']
ASK WHERE { resource:Carriches property:diplomatic_relation ?d . VALUES ( ?d ) { ( resource:Gabon ) ( resource:Austria ) ( resource:Antigua_and_Barbuda ) } }
[]