Simple Question (Direct)
Simple Question
Q393378
P47
Q515
USER
Who share the border with Žandov ?
(Q393378,P47,c(Q515))
action filter_type
action find
entity Q393378
relation P47
type Q515
['Q393378', 'P47', {'concept': 'Q515'}]
SELECT DISTINCT ?f WHERE { resource:Q393378 property:P47 ?f . ?f rdf:type ontology:Q515 }
Žandov
action filter_type
action find
entity Žandov
relation shares border with
type city
['Žandov', 'shares border with', {'concept': 'city'}]
SELECT DISTINCT ?f WHERE { resource:Žandov property:shares_border_with ?f . ?f rdf:type ontology:city }
[]
city
Q303478 Q1332348 Q330717
SYSTEM
Kravaře, Verneřice, Úštěk
Q303478 Q1332348 Q330717
(Q393378,P47,c(Q515))
action filter_type
action find
entity Q393378
relation P47
type Q515
[ANSWERS] share the border with Žandov
['Q393378', 'P47', {'concept': 'Q515'}]
SELECT DISTINCT ?f WHERE { resource:Q393378 property:P47 ?f . ?f rdf:type ontology:Q515 }
Kravaře Verneřice Úštěk
Kravaře, Verneřice and Úštěk share the border with Žandov
Kravaře Verneřice Úštěk
action filter_type
action find
entity Žandov
relation shares border with
type city
['Žandov', 'shares border with', {'concept': 'city'}]
SELECT DISTINCT ?f WHERE { resource:Žandov property:shares_border_with ?f . ?f rdf:type ontology:city }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q303478
P6
Q502895
USER
Which person is the head of government of Kravaře ?
(Q303478,P6,c(Q502895))
action filter_type
action find
entity Q303478
relation P6
type Q502895
['Q303478', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { resource:Q303478 property:P6 ?z . ?z rdf:type ontology:Q502895 }
Kravaře
action filter_type
action find
entity Kravaře
relation head of government
type common name
['Kravaře', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { resource:Kravaře property:head_of_government ?z . ?z rdf:type ontology:common_name }
[]
common name
Q3860869
SYSTEM
Monika Žídková
Q3860869
(Q303478,P6,c(Q502895))
action filter_type
action find
entity Q303478
relation P6
type Q502895
[ANSWER] is the head of government of Kravaře
['Q303478', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { resource:Q303478 property:P6 ?z . ?z rdf:type ontology:Q502895 }
Monika Žídková
Monika Žídková is the head of government of Kravaře
Monika Žídková
action filter_type
action find
entity Kravaře
relation head of government
type common name
['Kravaře', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { resource:Kravaře property:head_of_government ?z . ?z rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q303478
P20
Q502895
USER
Which people expired at Kravaře ?
(c(Q502895),P20,Q303478)
action filter_type
action find_reverse
entity Q303478
relation P20
type Q502895
[{'concept': 'Q502895'}, 'P20', 'Q303478']
SELECT DISTINCT ?s WHERE { ?s property:P20 resource:Q303478 . ?s rdf:type ontology:Q502895 }
Kravaře
action filter_type
action find_reverse
entity Kravaře
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Kravaře']
SELECT DISTINCT ?s WHERE { ?s property:place_of_death resource:Kravaře . ?s rdf:type ontology:common_name }
[]
common name
Q552684 Q12032472
SYSTEM
Michał Sędziwój, Ladislav Cikryt
Q552684 Q12032472
(c(Q502895),P20,Q303478)
action filter_type
action find_reverse
entity Q303478
relation P20
type Q502895
[ANSWERS] expired at Kravaře
[{'concept': 'Q502895'}, 'P20', 'Q303478']
SELECT DISTINCT ?s WHERE { ?s property:P20 resource:Q303478 . ?s rdf:type ontology:Q502895 }
Michał Sędziwój Ladislav Cikryt
Michał Sędziwój and Ladislav Cikryt expired at Kravaře
Michał Sędziwój Ladislav Cikryt
action filter_type
action find_reverse
entity Kravaře
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Kravaře']
SELECT DISTINCT ?s WHERE { ?s property:place_of_death resource:Kravaře . ?s rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q552684 Q12032472
P20
Q515
USER
Where did the expiration of Michał Sędziwój and Ladislav Cikryt occur ?
(Q552684,P20,c(Q515)) (Q12032472,P20,c(Q515))
action union
action filter_type
action find
entity Q552684
relation P20
type Q515
action filter_type
action find
entity Q12032472
relation P20
type Q515
['Q552684', 'P20', {'concept': 'Q515'}] ['Q12032472', 'P20', {'concept': 'Q515'}]
SELECT DISTINCT ?h WHERE { { resource:Q552684 property:P20 ?h . ?h rdf:type ontology:Q515 } UNION { resource:Q12032472 property:P20 ?h . ?h rdf:type ontology:Q515 } }
Michał Sędziwój Ladislav Cikryt
action union
action filter_type
action find
entity Michał Sędziwój
relation place of death
type city
action filter_type
action find
entity Ladislav Cikryt
relation place of death
type city
['Michał Sędziwój', 'place of death', {'concept': 'city'}] ['Ladislav Cikryt', 'place of death', {'concept': 'city'}]
SELECT DISTINCT ?h WHERE { { resource:Michał_Sędziwój property:place_of_death ?h . ?h rdf:type ontology:city } UNION { resource:Ladislav_Cikryt property:place_of_death ?h . ?h rdf:type ontology:city } }
[]
city
Q303478 Q303478
SYSTEM
Kravaře
Q303478 Q303478
(Q552684,P20,c(Q515)) (Q12032472,P20,c(Q515))
action union
action filter_type
action find
entity Q552684
relation P20
type Q515
action filter_type
action find
entity Q12032472
relation P20
type Q515
The expiration of Michał Sędziwój and Ladislav Cikryt occurred in [ANSWER] and [ANSWER]
['Q552684', 'P20', {'concept': 'Q515'}] ['Q12032472', 'P20', {'concept': 'Q515'}]
SELECT DISTINCT ?h WHERE { { resource:Q552684 property:P20 ?h . ?h rdf:type ontology:Q515 } UNION { resource:Q12032472 property:P20 ?h . ?h rdf:type ontology:Q515 } }
Kravaře Kravaře
The expiration of Michał Sędziwój and Ladislav Cikryt occurred in Kravaře and Kravaře
Kravaře Kravaře
action union
action filter_type
action find
entity Michał Sędziwój
relation place of death
type city
action filter_type
action find
entity Ladislav Cikryt
relation place of death
type city
['Michał Sędziwój', 'place of death', {'concept': 'city'}] ['Ladislav Cikryt', 'place of death', {'concept': 'city'}]
SELECT DISTINCT ?h WHERE { { resource:Michał_Sędziwój property:place_of_death ?h . ?h rdf:type ontology:city } UNION { resource:Ladislav_Cikryt property:place_of_death ?h . ?h rdf:type ontology:city } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q303478
P17
Q15617994
USER
Which administrative territory is Kravaře located in ?
(Q303478,P17,c(Q15617994))
action filter_type
action find
entity Q303478
relation P17
type Q15617994
['Q303478', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q15617994 . resource:Q303478 property:P17 ?n }
Kravaře
action filter_type
action find
entity Kravaře
relation country
type designation for an administrative territorial entity
['Kravaře', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Kravaře property:country ?n }
[]
designation for an administrative territorial entity
Q213
SYSTEM
Czech Republic
Q213
(Q303478,P17,c(Q15617994))
action filter_type
action find
entity Q303478
relation P17
type Q15617994
Kravaře is located in [ANSWER]
['Q303478', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q15617994 . resource:Q303478 property:P17 ?n }
Czech Republic
Kravaře is located in Czech Republic
Czech Republic
action filter_type
action find
entity Kravaře
relation country
type designation for an administrative territorial entity
['Kravaře', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Kravaře property:country ?n }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q16070583
Q15617994
USER
And how about Diefsteeg?
(Q16070583,P17,c(Q15617994))
action filter_type
action find
entity Q16070583
relation P17
type Q15617994
['Q16070583', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { resource:Q16070583 property:P17 ?g . ?g rdf:type ontology:Q15617994 }
Diefsteeg
action filter_type
action find
entity Diefsteeg
relation country
type designation for an administrative territorial entity
['Diefsteeg', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Diefsteeg property:country ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q55
SYSTEM
Netherlands
Q55
(Q16070583,P17,c(Q15617994))
action filter_type
action find
entity Q16070583
relation P17
type Q15617994
[ANSWER]
['Q16070583', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { resource:Q16070583 property:P17 ?g . ?g rdf:type ontology:Q15617994 }
Netherlands
Netherlands
action filter_type
action find
entity Diefsteeg
relation country
type designation for an administrative territorial entity
['Diefsteeg', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Diefsteeg property:country ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q1332348
P19 P21
Q502895
USER
Which people have birthplace at Verneřice and have the gender as male ?
AND((c(Q502895),P19,Q1332348), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q1332348
relation P19
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P19', 'Q1332348'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?v WHERE { ?v property:P19 resource:Q1332348 . ?v property:P21 resource:Q6581097 . ?v rdf:type ontology:Q502895 }
male Verneřice
action filter_type
action intersection
action find_reverse
entity Verneřice
relation place of birth
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'place of birth', 'Verneřice'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?v WHERE { ?v property:place_of_birth resource:Verneřice . ?v property:gender resource:male . ?v rdf:type ontology:common_name }
[]
common name
Q14915876 Q975561
SYSTEM
Ferdinand Lehmann, Josef Strobach
Q14915876 Q975561
AND((c(Q502895),P19,Q1332348), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q1332348
relation P19
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWERS] have birthplace at Verneřice and have the gender as male
{'AND': [[{'concept': 'Q502895'}, 'P19', 'Q1332348'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?v WHERE { ?v property:P19 resource:Q1332348 . ?v property:P21 resource:Q6581097 . ?v rdf:type ontology:Q502895 }
Ferdinand Lehmann Josef Strobach
Ferdinand Lehmann and Josef Strobach have birthplace at Verneřice and have the gender as male
Ferdinand Lehmann Josef Strobach
action filter_type
action intersection
action find_reverse
entity Verneřice
relation place of birth
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'place of birth', 'Verneřice'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?v WHERE { ?v property:place_of_birth resource:Verneřice . ?v property:gender resource:male . ?v rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P159
Q515 Q895526 Q7210356
USER
How many cities are the headquarter locations of exactly 17 authority organs or political organizations ?
(c(Q895526)|c(Q7210356),P159,c(Q515))
action count
action equal
action union
action find_reverse_tuple_counts
relation P159
type Q515
type Q895526
action find_reverse_tuple_counts
relation P159
type Q515
type Q7210356
value 17
[[{'concept': 'Q895526'}, {'concept': 'Q7210356'}], 'P159', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?b ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?c ) ?u WHERE { { ?u rdf:type ontology:Q515 . ?y rdf:type ontology:Q895526 . ?y property:P159 ?u } UNION { ?y property:P159 ?u . ?u rdf:type ontology:Q515 . ?y rdf:type ontology:Q7210356 } } GROUP BY ?u } . FILTER ( ?c = 17 ) }
action count
action equal
action union
action find_reverse_tuple_counts
relation headquarters location
type city
type authority organ
action find_reverse_tuple_counts
relation headquarters location
type city
type political organization
value 17
[[{'concept': 'authority organ'}, {'concept': 'political organization'}], 'headquarters location', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?b ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?c ) ?u WHERE { { ?u rdf:type ontology:city . ?y rdf:type ontology:authority_organ . ?y property:headquarters_location ?u } UNION { ?y property:headquarters_location ?u . ?u rdf:type ontology:city . ?y rdf:type ontology:political_organization } } GROUP BY ?u } . FILTER ( ?c = 17 ) }
[]
city authority organ political organization
SYSTEM
2
Q1953 Q1858
(c(Q895526)|c(Q7210356),P159,c(Q515))
action count
action equal
action union
action find_reverse_tuple_counts
relation P159
type Q515
type Q895526
action find_reverse_tuple_counts
relation P159
type Q515
type Q7210356
value 17
[ANSWER]
[[{'concept': 'Q895526'}, {'concept': 'Q7210356'}], 'P159', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?b ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?c ) ?u WHERE { { ?u rdf:type ontology:Q515 . ?y rdf:type ontology:Q895526 . ?y property:P159 ?u } UNION { ?y property:P159 ?u . ?u rdf:type ontology:Q515 . ?y rdf:type ontology:Q7210356 } } GROUP BY ?u } . FILTER ( ?c = 17 ) }
Yerevan Hanoi
2
action count
action equal
action union
action find_reverse_tuple_counts
relation headquarters location
type city
type authority organ
action find_reverse_tuple_counts
relation headquarters location
type city
type political organization
value 17
[[{'concept': 'authority organ'}, {'concept': 'political organization'}], 'headquarters location', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?b ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?c ) ?u WHERE { { ?u rdf:type ontology:city . ?y rdf:type ontology:authority_organ . ?y property:headquarters_location ?u } UNION { ?y property:headquarters_location ?u . ?u rdf:type ontology:city . ?y rdf:type ontology:political_organization } } GROUP BY ?u } . FILTER ( ?c = 17 ) }
[]