Simple Question (Direct)
Simple Question
Q2899562
P108
Q3914
USER
Which school employs Bertrand Hervieu ?
(Q2899562,P108,c(Q3914))
action filter_type
action find
entity Q2899562
relation P108
type Q3914
['Q2899562', 'P108', {'concept': 'Q3914'}]
SELECT DISTINCT ?t WHERE { resource:Q2899562 property:P108 ?t . ?t rdf:type ontology:Q3914 }
Bertrand Hervieu
action filter_type
action find
entity Bertrand Hervieu
relation employer
type school
['Bertrand Hervieu', 'employer', {'concept': 'school'}]
SELECT DISTINCT ?t WHERE { resource:Bertrand_Hervieu property:employer ?t . ?t rdf:type ontology:school }
[]
school
Q859363
SYSTEM
Sciences Po
Q859363
(Q2899562,P108,c(Q3914))
action filter_type
action find
entity Q2899562
relation P108
type Q3914
[ANSWER] employs Bertrand Hervieu
['Q2899562', 'P108', {'concept': 'Q3914'}]
SELECT DISTINCT ?t WHERE { resource:Q2899562 property:P108 ?t . ?t rdf:type ontology:Q3914 }
Sciences Po
Sciences Po employs Bertrand Hervieu
Sciences Po
action filter_type
action find
entity Bertrand Hervieu
relation employer
type school
['Bertrand Hervieu', 'employer', {'concept': 'school'}]
SELECT DISTINCT ?t WHERE { resource:Bertrand_Hervieu property:employer ?t . ?t rdf:type ontology:school }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2899562
P27
Q15617994
USER
Which administrative territory is the country of citizenship of Bertrand Hervieu ?
(Q2899562,P27,c(Q15617994))
action filter_type
action find
entity Q2899562
relation P27
type Q15617994
['Q2899562', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { resource:Q2899562 property:P27 ?k . ?k rdf:type ontology:Q15617994 }
Bertrand Hervieu
action filter_type
action find
entity Bertrand Hervieu
relation country of citizenship
type designation for an administrative territorial entity
['Bertrand Hervieu', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Bertrand_Hervieu property:country_of_citizenship ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q2899562,P27,c(Q15617994))
action filter_type
action find
entity Q2899562
relation P27
type Q15617994
[ANSWER] is the country of citizenship of Bertrand Hervieu
['Q2899562', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { resource:Q2899562 property:P27 ?k . ?k rdf:type ontology:Q15617994 }
France
France is the country of citizenship of Bertrand Hervieu
France
action filter_type
action find
entity Bertrand Hervieu
relation country of citizenship
type designation for an administrative territorial entity
['Bertrand Hervieu', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Bertrand_Hervieu property:country_of_citizenship ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q11882729
Q15617994
USER
And what about Mikko Kukkonen?
(Q11882729,P27,c(Q15617994))
action filter_type
action find
entity Q11882729
relation P27
type Q15617994
['Q11882729', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { resource:Q11882729 property:P27 ?g . ?g rdf:type ontology:Q15617994 }
Mikko Kukkonen
action filter_type
action find
entity Mikko Kukkonen
relation country of citizenship
type designation for an administrative territorial entity
['Mikko Kukkonen', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Mikko_Kukkonen property:country_of_citizenship ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q33
SYSTEM
Finland
Q33
(Q11882729,P27,c(Q15617994))
action filter_type
action find
entity Q11882729
relation P27
type Q15617994
[ANSWER]
['Q11882729', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { resource:Q11882729 property:P27 ?g . ?g rdf:type ontology:Q15617994 }
Finland
Finland
action filter_type
action find
entity Mikko Kukkonen
relation country of citizenship
type designation for an administrative territorial entity
['Mikko Kukkonen', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Mikko_Kukkonen property:country_of_citizenship ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q11882729
P21
Q290
USER
What is the sex of Mikko Kukkonen ?
(Q11882729,P21,c(Q290))
action filter_type
action find
entity Q11882729
relation P21
type Q290
['Q11882729', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q290 . resource:Q11882729 property:P21 ?e }
Mikko Kukkonen
action filter_type
action find
entity Mikko Kukkonen
relation gender
type sex
['Mikko Kukkonen', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:sex . resource:Mikko_Kukkonen property:gender ?e }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q11882729,P21,c(Q290))
action filter_type
action find
entity Q11882729
relation P21
type Q290
The sex of Mikko Kukkonen is a [ANSWER]
['Q11882729', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q290 . resource:Q11882729 property:P21 ?e }
male
The sex of Mikko Kukkonen is a male
male
action filter_type
action find
entity Mikko Kukkonen
relation gender
type sex
['Mikko Kukkonen', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:sex . resource:Mikko_Kukkonen property:gender ?e }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q2831280 Q2899562
P166
Q618779
USER
Which awards were received by Bertrand Hervieu and Albert Joseph de Rouvroy de Fournes ?
AND((Q2899562,P166,c(Q618779)), (Q2831280,P166,c(Q618779)))
action filter_type
action intersection
action find
entity Q2899562
relation P166
action find
entity Q2831280
relation P166
type Q618779
{'AND': [['Q2899562', 'P166', {'concept': 'Q618779'}], ['Q2831280', 'P166', {'concept': 'Q618779'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q618779 . resource:Q2899562 property:P166 ?x . resource:Q2831280 property:P166 ?x }
Albert Joseph de Rouvroy de Fournes Bertrand Hervieu
action filter_type
action intersection
action find
entity Bertrand Hervieu
relation award received
action find
entity Albert Joseph de Rouvroy de Fournes
relation award received
type award
{'AND': [['Bertrand Hervieu', 'award received', {'concept': 'award'}], ['Albert Joseph de Rouvroy de Fournes', 'award received', {'concept': 'award'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:award . resource:Bertrand_Hervieu property:award_received ?x . resource:Albert_Joseph_de_Rouvroy_de_Fournes property:award_received ?x }
[]
award
Q10855271
SYSTEM
Knight of the Legion of Honour
Q10855271
AND((Q2899562,P166,c(Q618779)), (Q2831280,P166,c(Q618779)))
action filter_type
action intersection
action find
entity Q2899562
relation P166
action find
entity Q2831280
relation P166
type Q618779
[ANSWER] was received by Bertrand Hervieu and Albert Joseph de Rouvroy de Fournes
{'AND': [['Q2899562', 'P166', {'concept': 'Q618779'}], ['Q2831280', 'P166', {'concept': 'Q618779'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q618779 . resource:Q2899562 property:P166 ?x . resource:Q2831280 property:P166 ?x }
Knight of the Legion of Honour
Knight of the Legion of Honour was received by Bertrand Hervieu and Albert Joseph de Rouvroy de Fournes
Knight of the Legion of Honour
action filter_type
action intersection
action find
entity Bertrand Hervieu
relation award received
action find
entity Albert Joseph de Rouvroy de Fournes
relation award received
type award
{'AND': [['Bertrand Hervieu', 'award received', {'concept': 'award'}], ['Albert Joseph de Rouvroy de Fournes', 'award received', {'concept': 'award'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:award . resource:Bertrand_Hervieu property:award_received ?x . resource:Albert_Joseph_de_Rouvroy_de_Fournes property:award_received ?x }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P361
Q13406554 Q35798 Q618779
USER
Which awards are a portion of max number of sport competitions or executive branches ?
(c(Q618779),P361,c(Q13406554)|c(Q35798))
action argmax
action union
action find_tuple_counts
relation P361
type Q618779
type Q13406554
action find_tuple_counts
relation P361
type Q618779
type Q35798
[{'concept': 'Q618779'}, 'P361', [{'concept': 'Q13406554'}, {'concept': 'Q35798'}]]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( MAX ( ?i ) AS ?p ) { SELECT DISTINCT ( COUNT ( ?c ) AS ?i ) ?r WHERE { { ?r property:P361 ?c . ?r rdf:type ontology:Q618779 . ?c rdf:type ontology:Q13406554 } UNION { ?r property:P361 ?c . ?c rdf:type ontology:Q35798 . ?r rdf:type ontology:Q618779 } } GROUP BY ?r } } . FILTER ( ?s = ?p ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?s ) ?t WHERE { ?y rdf:type ?e . VALUES ( ?e ) { ( ontology:Q13406554 ) ( ontology:Q35798 ) } } GROUP BY ?t } }
action argmax
action union
action find_tuple_counts
relation part of
type award
type sport competition
action find_tuple_counts
relation part of
type award
type executive branch
[{'concept': 'award'}, 'part of', [{'concept': 'sport competition'}, {'concept': 'executive branch'}]]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( MAX ( ?i ) AS ?p ) { SELECT DISTINCT ( COUNT ( ?c ) AS ?i ) ?r WHERE { { ?r property:part_of ?c . ?r rdf:type ontology:award . ?c rdf:type ontology:sport_competition } UNION { ?r property:part_of ?c . ?c rdf:type ontology:executive_branch . ?r rdf:type ontology:award } } GROUP BY ?r } } . FILTER ( ?s = ?p ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?s ) ?t WHERE { ?y rdf:type ?e . VALUES ( ?e ) { ( ontology:sport_competition ) ( ontology:executive_branch ) } } GROUP BY ?t } }
[]
sport competition executive branch award
Q3068024 Q2050658
SYSTEM
First Secretary of State, 2009–10 ISU Speed Skating World Cup – Men's 1000 metres
Q3068024 Q2050658
(c(Q618779),P361,c(Q13406554)|c(Q35798))
action argmax
action union
action find_tuple_counts
relation P361
type Q618779
type Q13406554
action find_tuple_counts
relation P361
type Q618779
type Q35798
[ANSWERS] are a portion of max number of sport competitions or executive branches
[{'concept': 'Q618779'}, 'P361', [{'concept': 'Q13406554'}, {'concept': 'Q35798'}]]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( MAX ( ?i ) AS ?p ) { SELECT DISTINCT ( COUNT ( ?c ) AS ?i ) ?r WHERE { { ?r property:P361 ?c . ?r rdf:type ontology:Q618779 . ?c rdf:type ontology:Q13406554 } UNION { ?r property:P361 ?c . ?c rdf:type ontology:Q35798 . ?r rdf:type ontology:Q618779 } } GROUP BY ?r } } . FILTER ( ?s = ?p ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?s ) ?t WHERE { ?y rdf:type ?e . VALUES ( ?e ) { ( ontology:Q13406554 ) ( ontology:Q35798 ) } } GROUP BY ?t } }
First Secretary of State 2009–10 ISU Speed Skating World Cup – Men's 1000 metres
First Secretary of State and 2009–10 ISU Speed Skating World Cup – Men's 1000 metres are a portion of max number of sport competitions or executive branches
First Secretary of State 2009–10 ISU Speed Skating World Cup – Men's 1000 metres
action argmax
action union
action find_tuple_counts
relation part of
type award
type sport competition
action find_tuple_counts
relation part of
type award
type executive branch
[{'concept': 'award'}, 'part of', [{'concept': 'sport competition'}, {'concept': 'executive branch'}]]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( MAX ( ?i ) AS ?p ) { SELECT DISTINCT ( COUNT ( ?c ) AS ?i ) ?r WHERE { { ?r property:part_of ?c . ?r rdf:type ontology:award . ?c rdf:type ontology:sport_competition } UNION { ?r property:part_of ?c . ?c rdf:type ontology:executive_branch . ?r rdf:type ontology:award } } GROUP BY ?r } } . FILTER ( ?s = ?p ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?s ) ?t WHERE { ?y rdf:type ?e . VALUES ( ?e ) { ( ontology:sport_competition ) ( ontology:executive_branch ) } } GROUP BY ?t } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q2719360
P36
Q56061 Q515 Q15617994
USER
How many administrative territories consists of more number of administrative territories and cities as their capital than Duchy of Luxembourg ?
(c(Q15617994),P36,c(Q56061)|c(Q515))
action count
action greater
action union
action find_tuple_counts
relation P36
type Q15617994
type Q56061
action find_tuple_counts
relation P36
type Q15617994
type Q515
action count
action filter_multi_types
action find
entity Q2719360
relation P36
type Q56061
type Q515
[{'concept': 'Q15617994'}, 'P36', [{'concept': 'Q56061'}, {'concept': 'Q515'}]]
SELECT DISTINCT ( COUNT ( ?u ) AS ?c ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?k ) WHERE { resource:Q2719360 property:P36 ?a . { VALUES ( ?d ) { ( ontology:Q56061 ) ( ontology:Q515 ) } . ?a rdf:type ?d } } } . FILTER ( ?g > ?k ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?g ) ?u WHERE { { ?u property:P36 ?v . ?u rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q515 } UNION { ?u property:P36 ?v . ?u rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q56061 } } GROUP BY ?u } }
Duchy of Luxembourg
action count
action greater
action union
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type administrative territorial entity
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type city
action count
action filter_multi_types
action find
entity Duchy of Luxembourg
relation capital
type administrative territorial entity
type city
[{'concept': 'designation for an administrative territorial entity'}, 'capital', [{'concept': 'administrative territorial entity'}, {'concept': 'city'}]]
SELECT DISTINCT ( COUNT ( ?u ) AS ?c ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?k ) WHERE { resource:Duchy_of_Luxembourg property:capital ?a . { VALUES ( ?d ) { ( ontology:administrative_territorial_entity ) ( ontology:city ) } . ?a rdf:type ?d } } } . FILTER ( ?g > ?k ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?g ) ?u WHERE { { ?u property:capital ?v . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:city } UNION { ?u property:capital ?v . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:administrative_territorial_entity } } GROUP BY ?u } }
[]
administrative territorial entity city designation for an administrative territorial entity
SYSTEM
14
Q252 Q258 Q155 Q1020 Q41 Q30 Q230 Q1033 Q199688 Q12536 Q517333 Q924 Q17 Q160307
(c(Q15617994),P36,c(Q56061)|c(Q515))
action count
action greater
action union
action find_tuple_counts
relation P36
type Q15617994
type Q56061
action find_tuple_counts
relation P36
type Q15617994
type Q515
action count
action filter_multi_types
action find
entity Q2719360
relation P36
type Q56061
type Q515
[ANSWER]
[{'concept': 'Q15617994'}, 'P36', [{'concept': 'Q56061'}, {'concept': 'Q515'}]]
SELECT DISTINCT ( COUNT ( ?u ) AS ?c ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?k ) WHERE { resource:Q2719360 property:P36 ?a . { VALUES ( ?d ) { ( ontology:Q56061 ) ( ontology:Q515 ) } . ?a rdf:type ?d } } } . FILTER ( ?g > ?k ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?g ) ?u WHERE { { ?u property:P36 ?v . ?u rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q515 } UNION { ?u property:P36 ?v . ?u rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q56061 } } GROUP BY ?u } }
Indonesia South Africa Brazil Malawi Greece United States of America Georgia Nigeria Almohad Abbasid caliphate Principality of Polotsk Tanzania Japan Fatimid caliphate
14
action count
action greater
action union
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type administrative territorial entity
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type city
action count
action filter_multi_types
action find
entity Duchy of Luxembourg
relation capital
type administrative territorial entity
type city
[{'concept': 'designation for an administrative territorial entity'}, 'capital', [{'concept': 'administrative territorial entity'}, {'concept': 'city'}]]
SELECT DISTINCT ( COUNT ( ?u ) AS ?c ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?k ) WHERE { resource:Duchy_of_Luxembourg property:capital ?a . { VALUES ( ?d ) { ( ontology:administrative_territorial_entity ) ( ontology:city ) } . ?a rdf:type ?d } } } . FILTER ( ?g > ?k ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?g ) ?u WHERE { { ?u property:capital ?v . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:city } UNION { ?u property:capital ?v . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:administrative_territorial_entity } } GROUP BY ?u } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q2995277
P36
Q56061 Q515 Q15617994
USER
And what about Dzau district?
(c(Q15617994),P36,c(Q56061)|c(Q515))
action count
action greater
action union
action find_tuple_counts
relation P36
type Q15617994
type Q56061
action find_tuple_counts
relation P36
type Q15617994
type Q515
action count
action filter_multi_types
action find
entity Q2995277
relation P36
type Q56061
type Q515
[{'concept': 'Q15617994'}, 'P36', [{'concept': 'Q56061'}, {'concept': 'Q515'}]]
SELECT DISTINCT ( COUNT ( ?t ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?c ) WHERE { resource:Q2995277 property:P36 ?n . { { ?n rdf:type ontology:Q56061 } UNION { ?n rdf:type ontology:Q515 } } } } . FILTER ( ?l > ?c ) . { SELECT DISTINCT ?t ( COUNT ( ?k ) AS ?l ) WHERE { { ?t property:P36 ?k . ?t rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q56061 } UNION { ?t rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q515 . ?t property:P36 ?k } } GROUP BY ?t } }
Dzau district
action count
action greater
action union
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type administrative territorial entity
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type city
action count
action filter_multi_types
action find
entity Dzau district
relation capital
type administrative territorial entity
type city
[{'concept': 'designation for an administrative territorial entity'}, 'capital', [{'concept': 'administrative territorial entity'}, {'concept': 'city'}]]
SELECT DISTINCT ( COUNT ( ?t ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?c ) WHERE { resource:Dzau_district property:capital ?n . { { ?n rdf:type ontology:administrative_territorial_entity } UNION { ?n rdf:type ontology:city } } } } . FILTER ( ?l > ?c ) . { SELECT DISTINCT ?t ( COUNT ( ?k ) AS ?l ) WHERE { { ?t property:capital ?k . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:administrative_territorial_entity } UNION { ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:city . ?t property:capital ?k } } GROUP BY ?t } }
[]
administrative territorial entity city designation for an administrative territorial entity
SYSTEM
14
Q252 Q258 Q155 Q1020 Q41 Q30 Q230 Q1033 Q199688 Q12536 Q517333 Q924 Q17 Q160307
(c(Q15617994),P36,c(Q56061)|c(Q515))
action count
action greater
action union
action find_tuple_counts
relation P36
type Q15617994
type Q56061
action find_tuple_counts
relation P36
type Q15617994
type Q515
action count
action filter_multi_types
action find
entity Q2995277
relation P36
type Q56061
type Q515
[ANSWER]
[{'concept': 'Q15617994'}, 'P36', [{'concept': 'Q56061'}, {'concept': 'Q515'}]]
SELECT DISTINCT ( COUNT ( ?t ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?c ) WHERE { resource:Q2995277 property:P36 ?n . { { ?n rdf:type ontology:Q56061 } UNION { ?n rdf:type ontology:Q515 } } } } . FILTER ( ?l > ?c ) . { SELECT DISTINCT ?t ( COUNT ( ?k ) AS ?l ) WHERE { { ?t property:P36 ?k . ?t rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q56061 } UNION { ?t rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q515 . ?t property:P36 ?k } } GROUP BY ?t } }
Indonesia South Africa Brazil Malawi Greece United States of America Georgia Nigeria Almohad Abbasid caliphate Principality of Polotsk Tanzania Japan Fatimid caliphate
14
action count
action greater
action union
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type administrative territorial entity
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type city
action count
action filter_multi_types
action find
entity Dzau district
relation capital
type administrative territorial entity
type city
[{'concept': 'designation for an administrative territorial entity'}, 'capital', [{'concept': 'administrative territorial entity'}, {'concept': 'city'}]]
SELECT DISTINCT ( COUNT ( ?t ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?c ) WHERE { resource:Dzau_district property:capital ?n . { { ?n rdf:type ontology:administrative_territorial_entity } UNION { ?n rdf:type ontology:city } } } } . FILTER ( ?l > ?c ) . { SELECT DISTINCT ?t ( COUNT ( ?k ) AS ?l ) WHERE { { ?t property:capital ?k . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:administrative_territorial_entity } UNION { ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:city . ?t property:capital ?k } } GROUP BY ?t } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q10855271
P17
Q15617994
USER
Which administrative territory is Knight of the Legion of Honour present in ?
(Q10855271,P17,c(Q15617994))
action filter_type
action find
entity Q10855271
relation P17
type Q15617994
['Q10855271', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { resource:Q10855271 property:P17 ?a . ?a rdf:type ontology:Q15617994 }
Knight of the Legion of Honour
action filter_type
action find
entity Knight of the Legion of Honour
relation country
type designation for an administrative territorial entity
['Knight of the Legion of Honour', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Knight_of_the_Legion_of_Honour property:country ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q10855271,P17,c(Q15617994))
action filter_type
action find
entity Q10855271
relation P17
type Q15617994
[ANSWER] is Knight of the Legion of Honour present in
['Q10855271', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { resource:Q10855271 property:P17 ?a . ?a rdf:type ontology:Q15617994 }
France
France is Knight of the Legion of Honour present in
France
action filter_type
action find
entity Knight of the Legion of Honour
relation country
type designation for an administrative territorial entity
['Knight of the Legion of Honour', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Knight_of_the_Legion_of_Honour property:country ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q33
P6
Q502895
USER
Which people have Finland as their heads of government ?
(Q33,P6,c(Q502895))
action filter_type
action find
entity Q33
relation P6
type Q502895
['Q33', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q502895 . resource:Q33 property:P6 ?n }
Finland
action filter_type
action find
entity Finland
relation head of government
type common name
['Finland', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:common_name . resource:Finland property:head_of_government ?n }
[]
common name
Q1711532 Q503143 Q57638
SYSTEM
Juha Sipilä, Alexander Stubb, Jyrki Katainen
Q1711532 Q503143 Q57638
(Q33,P6,c(Q502895))
action filter_type
action find
entity Q33
relation P6
type Q502895
[ANSWERS] have Finland as their heads of government
['Q33', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q502895 . resource:Q33 property:P6 ?n }
Juha Sipilä Alexander Stubb Jyrki Katainen
Juha Sipilä, Alexander Stubb and Jyrki Katainen have Finland as their heads of government
Juha Sipilä Alexander Stubb Jyrki Katainen
action filter_type
action find
entity Finland
relation head of government
type common name
['Finland', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:common_name . resource:Finland property:head_of_government ?n }
[]