Simple Question (Direct)
Simple Question
Q11023716
P735
Q82799
USER
What is the firstname of Ludvík Černý ?
(Q11023716,P735,c(Q82799))
action filter_type
action find
entity Q11023716
relation P735
type Q82799
['Q11023716', 'P735', {'concept': 'Q82799'}]
SELECT DISTINCT ?u WHERE { resource:Q11023716 property:P735 ?u . ?u rdf:type ontology:Q82799 }
Ludvík Černý
action filter_type
action find
entity Ludvík Černý
relation given name
type name
['Ludvík Černý', 'given name', {'concept': 'name'}]
SELECT DISTINCT ?u WHERE { resource:Ludvík_Černý property:given_name ?u . ?u rdf:type ontology:name }
[]
name
Q6699136
SYSTEM
Ludvík
Q6699136
(Q11023716,P735,c(Q82799))
action filter_type
action find
entity Q11023716
relation P735
type Q82799
The firstname of [ANSWER] Černý is of [ANSWER]
['Q11023716', 'P735', {'concept': 'Q82799'}]
SELECT DISTINCT ?u WHERE { resource:Q11023716 property:P735 ?u . ?u rdf:type ontology:Q82799 }
Ludvík
The firstname of Ludvík Černý is of Ludvík
Ludvík
action filter_type
action find
entity Ludvík Černý
relation given name
type name
['Ludvík Černý', 'given name', {'concept': 'name'}]
SELECT DISTINCT ?u WHERE { resource:Ludvík_Černý property:given_name ?u . ?u rdf:type ontology:name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q11023716
P6
Q56061
USER
Which administrative territory is Ludvík Černý the head of the goverment of ?
(c(Q56061),P6,Q11023716)
action filter_type
action find_reverse
entity Q11023716
relation P6
type Q56061
[{'concept': 'Q56061'}, 'P6', 'Q11023716']
SELECT DISTINCT ?t WHERE { ?t property:P6 resource:Q11023716 . ?t rdf:type ontology:Q56061 }
Ludvík Černý
action filter_type
action find_reverse
entity Ludvík Černý
relation head of government
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'head of government', 'Ludvík Černý']
SELECT DISTINCT ?t WHERE { ?t property:head_of_government resource:Ludvík_Černý . ?t rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1085
SYSTEM
Prague
Q1085
(c(Q56061),P6,Q11023716)
action filter_type
action find_reverse
entity Q11023716
relation P6
type Q56061
[ANSWER] is Ludvík Černý the head of the goverment of
[{'concept': 'Q56061'}, 'P6', 'Q11023716']
SELECT DISTINCT ?t WHERE { ?t property:P6 resource:Q11023716 . ?t rdf:type ontology:Q56061 }
Prague
Prague is Ludvík Černý the head of the goverment of
Prague
action filter_type
action find_reverse
entity Ludvík Černý
relation head of government
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'head of government', 'Ludvík Černý']
SELECT DISTINCT ?t WHERE { ?t property:head_of_government resource:Ludvík_Černý . ?t rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q11023716
P21
Q290
USER
What is the sex of that person ?
(Q1085,P21,c(Q290))
action filter_type
action find
entity Q11023716
relation P21
type Q290
['Q1085', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?j WHERE { resource:Q11023716 property:P21 ?j . ?j rdf:type ontology:Q290 }
Ludvík Černý
action filter_type
action find
entity Ludvík Černý
relation gender
type sex
['Prague', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?j WHERE { resource:Ludvík_Černý property:gender ?j . ?j rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q1085,P21,c(Q290))
action filter_type
action find
entity Q11023716
relation P21
type Q290
The sex of that person is a [ANSWER]
['Q1085', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?j WHERE { resource:Q11023716 property:P21 ?j . ?j rdf:type ontology:Q290 }
male
The sex of that person is a male
male
action filter_type
action find
entity Ludvík Černý
relation gender
type sex
['Prague', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?j WHERE { resource:Ludvík_Černý property:gender ?j . ?j rdf:type ontology:sex }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q1085
P47
Q1048835 Q515
USER
How many political territories and cities have a shared border with Prague ?
(Q1085,P47,c(Q1048835)) (Q1085,P47,c(Q515))
action count
action union
action filter_type
action find
entity Q1085
relation P47
type Q1048835
action filter_type
action find
entity Q1085
relation P47
type Q515
['Q1085', 'P47', {'concept': 'Q1048835'}] ['Q1085', 'P47', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?e ) WHERE { { resource:Q1085 property:P47 ?x . ?x rdf:type ontology:Q1048835 } UNION { resource:Q1085 property:P47 ?x . ?x rdf:type ontology:Q515 } }
Prague
action count
action union
action filter_type
action find
entity Prague
relation shares border with
type political territorial entity
action filter_type
action find
entity Prague
relation shares border with
type city
['Prague', 'shares border with', {'concept': 'political territorial entity'}] ['Prague', 'shares border with', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?e ) WHERE { { resource:Prague property:shares_border_with ?x . ?x rdf:type ontology:political_territorial_entity } UNION { resource:Prague property:shares_border_with ?x . ?x rdf:type ontology:city } }
[]
political territorial entity city
SYSTEM
1 political territories and 5 cities
Q330653 Q188399 Q1756968 Q386988 Q339112 Q1630623
(Q1085,P47,c(Q1048835)) (Q1085,P47,c(Q515))
action count
action union
action filter_type
action find
entity Q1085
relation P47
type Q1048835
action filter_type
action find
entity Q1085
relation P47
type Q515
[ANSWER]
['Q1085', 'P47', {'concept': 'Q1048835'}] ['Q1085', 'P47', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?e ) WHERE { { resource:Q1085 property:P47 ?x . ?x rdf:type ontology:Q1048835 } UNION { resource:Q1085 property:P47 ?x . ?x rdf:type ontology:Q515 } }
Úvaly Central Bohemian Region Roztoky Říčany Černošice Hostivice
1 political territories and 5 cities
action count
action union
action filter_type
action find
entity Prague
relation shares border with
type political territorial entity
action filter_type
action find
entity Prague
relation shares border with
type city
['Prague', 'shares border with', {'concept': 'political territorial entity'}] ['Prague', 'shares border with', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?e ) WHERE { { resource:Prague property:shares_border_with ?x . ?x rdf:type ontology:political_territorial_entity } UNION { resource:Prague property:shares_border_with ?x . ?x rdf:type ontology:city } }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1085
P36
Q15617994
USER
Which administrative territory has that administrative territory as its administrative centre ?
action filter_type
action find_reverse
entity Q1085
relation P36
type Q15617994
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q15617994 . ?p property:P36 resource:Q1085 }
Prague
action filter_type
action find_reverse
entity Prague
relation capital
type designation for an administrative territorial entity
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p property:capital resource:Prague }
[]
designation for an administrative territorial entity
Q213
SYSTEM
Czech Republic
Q213
action filter_type
action find_reverse
entity Q1085
relation P36
type Q15617994
The [ANSWER] has that administrative territory as its administrative centre
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q15617994 . ?p property:P36 resource:Q1085 }
Czech Republic
The Czech Republic has that administrative territory as its administrative centre
Czech Republic
action filter_type
action find_reverse
entity Prague
relation capital
type designation for an administrative territorial entity
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p property:capital resource:Prague }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q213 Q183
P530
Q1048835
USER
Does Germany have diplomatic relationships with that administrative territory ?
(Q213,P530,Q183)
action is_in
entity Q183
action find
entity Q213
relation P530
['Q213', 'P530', 'Q183']
ASK WHERE { resource:Q213 property:P530 resource:Q183 }
Czech Republic Germany
action is_in
entity Germany
action find
entity Czech Republic
relation diplomatic relation
['Czech Republic', 'diplomatic relation', 'Germany']
ASK WHERE { resource:Czech_Republic property:diplomatic_relation resource:Germany }
[]
political territorial entity
SYSTEM
YES
(Q213,P530,Q183)
action is_in
entity Q183
action find
entity Q213
relation P530
[ANSWER]
['Q213', 'P530', 'Q183']
ASK WHERE { resource:Q213 property:P530 resource:Q183 }
Yes
action is_in
entity Germany
action find
entity Czech Republic
relation diplomatic relation
['Czech Republic', 'diplomatic relation', 'Germany']
ASK WHERE { resource:Czech_Republic property:diplomatic_relation resource:Germany }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q213
P47
Q15617994
USER
Which administrative territories are next to the border of that one ?
action filter_type
action find
entity Q213
relation P47
type Q15617994
SELECT DISTINCT ?l WHERE { resource:Q213 property:P47 ?l . ?l rdf:type ontology:Q15617994 }
Czech Republic
action filter_type
action find
entity Czech Republic
relation shares border with
type designation for an administrative territorial entity
SELECT DISTINCT ?l WHERE { resource:Czech_Republic property:shares_border_with ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q36 Q214
SYSTEM
Poland, Slovakia
Q36 Q214
action filter_type
action find
entity Q213
relation P47
type Q15617994
[ANSWERS] are next to the border of that one
SELECT DISTINCT ?l WHERE { resource:Q213 property:P47 ?l . ?l rdf:type ontology:Q15617994 }
Poland Slovakia
Poland and Slovakia are next to the border of that one
Poland Slovakia
action filter_type
action find
entity Czech Republic
relation shares border with
type designation for an administrative territorial entity
SELECT DISTINCT ?l WHERE { resource:Czech_Republic property:shares_border_with ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]