Simple Question (Direct)
Simple Question
Q2620544
P39
Q12737077
USER
Which occupation was a position for which Dražen Bošnjaković was appointed ?
(Q2620544,P39,c(Q12737077))
action filter_type
action find
entity Q2620544
relation P39
type Q12737077
['Q2620544', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?o WHERE { resource:Q2620544 property:P39 ?o . ?o rdf:type ontology:Q12737077 }
Dražen Bošnjaković
action filter_type
action find
entity Dražen Bošnjaković
relation position held
type occupation
['Dražen Bošnjaković', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?o WHERE { resource:Dražen_Bošnjaković property:position_held ?o . ?o rdf:type ontology:occupation }
[]
occupation
Q18643511
SYSTEM
representative in the Croatian Parliament
Q18643511
(Q2620544,P39,c(Q12737077))
action filter_type
action find
entity Q2620544
relation P39
type Q12737077
The [ANSWER] was a position for which Dražen Bošnjaković was appointed
['Q2620544', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?o WHERE { resource:Q2620544 property:P39 ?o . ?o rdf:type ontology:Q12737077 }
representative in the Croatian Parliament
The representative in the Croatian Parliament was a position for which Dražen Bošnjaković was appointed
representative in the Croatian Parliament
action filter_type
action find
entity Dražen Bošnjaković
relation position held
type occupation
['Dražen Bošnjaković', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?o WHERE { resource:Dražen_Bošnjaković property:position_held ?o . ?o rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2620544
P21
Q290
USER
What is the sex of that person ?
(Q18643511,P21,c(Q290))
action filter_type
action find
entity Q2620544
relation P21
type Q290
['Q18643511', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?q WHERE { resource:Q2620544 property:P21 ?q . ?q rdf:type ontology:Q290 }
Dražen Bošnjaković
action filter_type
action find
entity Dražen Bošnjaković
relation gender
type sex
['representative in the Croatian Parliament', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?q WHERE { resource:Dražen_Bošnjaković property:gender ?q . ?q rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q18643511,P21,c(Q290))
action filter_type
action find
entity Q2620544
relation P21
type Q290
The sex of that person is a [ANSWER]
['Q18643511', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?q WHERE { resource:Q2620544 property:P21 ?q . ?q rdf:type ontology:Q290 }
male
The sex of that person is a male
male
action filter_type
action find
entity Dražen Bošnjaković
relation gender
type sex
['representative in the Croatian Parliament', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?q WHERE { resource:Dražen_Bošnjaković property:gender ?q . ?q rdf:type ontology:sex }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q6581097
P180
Q340169 Q3305213
USER
How many medias or paintings express male ?
(c(Q340169),P180,Q6581097) (c(Q3305213),P180,Q6581097)
action count
action union
action filter_type
action find_reverse
entity Q6581097
relation P180
type Q340169
action filter_type
action find_reverse
entity Q6581097
relation P180
type Q3305213
[{'concept': 'Q340169'}, 'P180', 'Q6581097'] [{'concept': 'Q3305213'}, 'P180', 'Q6581097']
SELECT DISTINCT ( COUNT ( ?y ) AS ?b ) WHERE { ?y rdf:type ?t . VALUES ( ?t ) { ( ontology:Q340169 ) ( ontology:Q3305213 ) } }
male
action count
action union
action filter_type
action find_reverse
entity male
relation depicts
type media
action filter_type
action find_reverse
entity male
relation depicts
type painting
[{'concept': 'media'}, 'depicts', 'male'] [{'concept': 'painting'}, 'depicts', 'male']
SELECT DISTINCT ( COUNT ( ?y ) AS ?b ) WHERE { ?y rdf:type ?t . VALUES ( ?t ) { ( ontology:media ) ( ontology:painting ) } }
[]
media painting
SYSTEM
2
Q18713957 Q20020115
(c(Q340169),P180,Q6581097) (c(Q3305213),P180,Q6581097)
action count
action union
action filter_type
action find_reverse
entity Q6581097
relation P180
type Q340169
action filter_type
action find_reverse
entity Q6581097
relation P180
type Q3305213
[ANSWER]
[{'concept': 'Q340169'}, 'P180', 'Q6581097'] [{'concept': 'Q3305213'}, 'P180', 'Q6581097']
SELECT DISTINCT ( COUNT ( ?y ) AS ?b ) WHERE { ?y rdf:type ?t . VALUES ( ?t ) { ( ontology:Q340169 ) ( ontology:Q3305213 ) } }
Raja Surendra Vikram Shah at the age of 15 with his prime minister Portrait of a Young Man
2
action count
action union
action filter_type
action find_reverse
entity male
relation depicts
type media
action filter_type
action find_reverse
entity male
relation depicts
type painting
[{'concept': 'media'}, 'depicts', 'male'] [{'concept': 'painting'}, 'depicts', 'male']
SELECT DISTINCT ( COUNT ( ?y ) AS ?b ) WHERE { ?y rdf:type ?t . VALUES ( ?t ) { ( ontology:media ) ( ontology:painting ) } }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6581097
P69
Q502895
USER
Who was educated at that sex ?
action filter_type
action find_reverse
entity Q6581097
relation P69
type Q502895
SELECT DISTINCT ?c WHERE { ?c property:P69 resource:Q6581097 . ?c rdf:type ontology:Q502895 }
male
action filter_type
action find_reverse
entity male
relation educated at
type common name
SELECT DISTINCT ?c WHERE { ?c property:educated_at resource:male . ?c rdf:type ontology:common_name }
[]
common name
Q4662307
SYSTEM
Aaron Parchem
Q4662307
action filter_type
action find_reverse
entity Q6581097
relation P69
type Q502895
[ANSWER] was educated at that sex
SELECT DISTINCT ?c WHERE { ?c property:P69 resource:Q6581097 . ?c rdf:type ontology:Q502895 }
Aaron Parchem
Aaron Parchem was educated at that sex
Aaron Parchem
action filter_type
action find_reverse
entity male
relation educated at
type common name
SELECT DISTINCT ?c WHERE { ?c property:educated_at resource:male . ?c rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments are played by min number of people ?
(c(Q502895),P1303,Q3623688)
action argmin
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
[{'concept': 'Q502895'}, 'P1303', 'Q3623688']
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?e ) AS ?i ) WHERE { ?e property:P1303 ?k . ?k rdf:type ontology:Q34379 . ?e rdf:type ontology:Q502895 } GROUP BY ?k } . FILTER ( ?i = ?g ) . { SELECT DISTINCT ( MIN ( ?d ) AS ?g ) { SELECT DISTINCT ?c ( COUNT ( ?n ) AS ?d ) WHERE { ?n property:P1303 ?c . ?n rdf:type ontology:Q502895 . ?c rdf:type ontology:Q34379 } GROUP BY ?c } } }
action argmin
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
[{'concept': 'common name'}, 'instrument', 'Paraguayan harp']
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?e ) AS ?i ) WHERE { ?e property:instrument ?k . ?k rdf:type ontology:musical_instrument . ?e rdf:type ontology:common_name } GROUP BY ?k } . FILTER ( ?i = ?g ) . { SELECT DISTINCT ( MIN ( ?d ) AS ?g ) { SELECT DISTINCT ?c ( COUNT ( ?n ) AS ?d ) WHERE { ?n property:instrument ?c . ?n rdf:type ontology:common_name . ?c rdf:type ontology:musical_instrument } GROUP BY ?c } } }
[]
musical instrument common name
Q1879664 Q748455 Q173453
SYSTEM
spoon, cajón, wind instrument
Q1879664 Q748455 Q173453
(c(Q502895),P1303,Q3623688)
action argmin
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
[ANSWERS] are played by min number of people
[{'concept': 'Q502895'}, 'P1303', 'Q3623688']
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?e ) AS ?i ) WHERE { ?e property:P1303 ?k . ?k rdf:type ontology:Q34379 . ?e rdf:type ontology:Q502895 } GROUP BY ?k } . FILTER ( ?i = ?g ) . { SELECT DISTINCT ( MIN ( ?d ) AS ?g ) { SELECT DISTINCT ?c ( COUNT ( ?n ) AS ?d ) WHERE { ?n property:P1303 ?c . ?n rdf:type ontology:Q502895 . ?c rdf:type ontology:Q34379 } GROUP BY ?c } } }
spoon cajón wind instrument
Spoon, cajón and wind instrument are played by min number of people
spoon cajón wind instrument
action argmin
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
[{'concept': 'common name'}, 'instrument', 'Paraguayan harp']
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?e ) AS ?i ) WHERE { ?e property:instrument ?k . ?k rdf:type ontology:musical_instrument . ?e rdf:type ontology:common_name } GROUP BY ?k } . FILTER ( ?i = ?g ) . { SELECT DISTINCT ( MIN ( ?d ) AS ?g ) { SELECT DISTINCT ?c ( COUNT ( ?n ) AS ?d ) WHERE { ?n property:instrument ?c . ?n rdf:type ontology:common_name . ?c rdf:type ontology:musical_instrument } GROUP BY ?c } } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2620544
P106
Q12737077
USER
What does Dražen Bošnjaković do for a living ?
(Q2620544,P106,c(Q12737077))
action filter_type
action find
entity Q2620544
relation P106
type Q12737077
['Q2620544', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { resource:Q2620544 property:P106 ?w . ?w rdf:type ontology:Q12737077 }
Dražen Bošnjaković
action filter_type
action find
entity Dražen Bošnjaković
relation occupation
type occupation
['Dražen Bošnjaković', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { resource:Dražen_Bošnjaković property:occupation ?w . ?w rdf:type ontology:occupation }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q2620544,P106,c(Q12737077))
action filter_type
action find
entity Q2620544
relation P106
type Q12737077
[ANSWER] Dražen Bošnjaković does for a living
['Q2620544', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { resource:Q2620544 property:P106 ?w . ?w rdf:type ontology:Q12737077 }
politician
Politician Dražen Bošnjaković does for a living
politician
action filter_type
action find
entity Dražen Bošnjaković
relation occupation
type occupation
['Dražen Bošnjaković', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { resource:Dražen_Bošnjaković property:occupation ?w . ?w rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2620544
P19
Q56061
USER
Which administrative territory was Dražen Bošnjaković born in ?
(Q2620544,P19,c(Q56061))
action filter_type
action find
entity Q2620544
relation P19
type Q56061
['Q2620544', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?b WHERE { resource:Q2620544 property:P19 ?b . ?b rdf:type ontology:Q56061 }
Dražen Bošnjaković
action filter_type
action find
entity Dražen Bošnjaković
relation place of birth
type administrative territorial entity
['Dražen Bošnjaković', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Dražen_Bošnjaković property:place_of_birth ?b . ?b rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q5867
SYSTEM
Vukovar
Q5867
(Q2620544,P19,c(Q56061))
action filter_type
action find
entity Q2620544
relation P19
type Q56061
Dražen Bošnjaković was born in [ANSWER]
['Q2620544', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?b WHERE { resource:Q2620544 property:P19 ?b . ?b rdf:type ontology:Q56061 }
Vukovar
Dražen Bošnjaković was born in Vukovar
Vukovar
action filter_type
action find
entity Dražen Bošnjaković
relation place of birth
type administrative territorial entity
['Dražen Bošnjaković', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Dražen_Bošnjaković property:place_of_birth ?b . ?b rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q82955
P425
Q3769299
USER
Who has politician as the associated field of occupation ?
(Q82955,P425,c(Q3769299))
action filter_type
action find
entity Q82955
relation P425
type Q3769299
['Q82955', 'P425', {'concept': 'Q3769299'}]
SELECT DISTINCT ?p WHERE { resource:Q82955 property:P425 ?p . ?p rdf:type ontology:Q3769299 }
politician
action filter_type
action find
entity politician
relation field of this occupation
type human behaviour
['politician', 'field of this occupation', {'concept': 'human behaviour'}]
SELECT DISTINCT ?p WHERE { resource:politician property:field_of_this_occupation ?p . ?p rdf:type ontology:human_behaviour }
[]
human behaviour
Q7163
SYSTEM
politics
Q7163
(Q82955,P425,c(Q3769299))
action filter_type
action find
entity Q82955
relation P425
type Q3769299
[ANSWER] has politician as the associated field of occupation
['Q82955', 'P425', {'concept': 'Q3769299'}]
SELECT DISTINCT ?p WHERE { resource:Q82955 property:P425 ?p . ?p rdf:type ontology:Q3769299 }
politics
Politics has politician as the associated field of occupation
politics
action filter_type
action find
entity politician
relation field of this occupation
type human behaviour
['politician', 'field of this occupation', {'concept': 'human behaviour'}]
SELECT DISTINCT ?p WHERE { resource:politician property:field_of_this_occupation ?p . ?p rdf:type ontology:human_behaviour }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5867
P190
Q13220204
USER
Which administrative country subdivisions are sister towns of Vukovar ?
(Q5867,P190,c(Q13220204))
action filter_type
action find
entity Q5867
relation P190
type Q13220204
['Q5867', 'P190', {'concept': 'Q13220204'}]
SELECT DISTINCT ?v WHERE { resource:Q5867 property:P190 ?v . ?v rdf:type ontology:Q13220204 }
Vukovar
action filter_type
action find
entity Vukovar
relation sister city
type second-level administrative country subdivision
['Vukovar', 'sister city', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?v WHERE { resource:Vukovar property:sister_city ?v . ?v rdf:type ontology:second-level_administrative_country_subdivision }
[]
second-level administrative country subdivision
Q684630 Q1722
SYSTEM
Bač, Serbia, Dubrovnik
Q684630 Q1722
(Q5867,P190,c(Q13220204))
action filter_type
action find
entity Q5867
relation P190
type Q13220204
[ANSWERS] are sister towns of Vukovar
['Q5867', 'P190', {'concept': 'Q13220204'}]
SELECT DISTINCT ?v WHERE { resource:Q5867 property:P190 ?v . ?v rdf:type ontology:Q13220204 }
Bač, Serbia Dubrovnik
Bač, Serbia and Dubrovnik are sister towns of Vukovar
Bač, Serbia Dubrovnik
action filter_type
action find
entity Vukovar
relation sister city
type second-level administrative country subdivision
['Vukovar', 'sister city', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?v WHERE { resource:Vukovar property:sister_city ?v . ?v rdf:type ontology:second-level_administrative_country_subdivision }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5867
P17
Q15617994
USER
Which administrative territory is that administrative territory situated in ?
(Q684630,P17,c(Q15617994)) (Q1722,P17,c(Q15617994))
action filter_type
action find
entity Q5867
relation P17
type Q15617994
['Q684630', 'P17', {'concept': 'Q15617994'}] ['Q1722', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { resource:Q5867 property:P17 ?d . ?d rdf:type ontology:Q15617994 }
Vukovar
action filter_type
action find
entity Vukovar
relation country
type designation for an administrative territorial entity
['Bač, Serbia', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Dubrovnik', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Vukovar property:country ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q224
SYSTEM
Croatia
Q224
(Q684630,P17,c(Q15617994)) (Q1722,P17,c(Q15617994))
action filter_type
action find
entity Q5867
relation P17
type Q15617994
That administrative territory is situated in [ANSWER]
['Q684630', 'P17', {'concept': 'Q15617994'}] ['Q1722', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { resource:Q5867 property:P17 ?d . ?d rdf:type ontology:Q15617994 }
Croatia
That administrative territory is situated in Croatia
Croatia
action filter_type
action find
entity Vukovar
relation country
type designation for an administrative territorial entity
['Bač, Serbia', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Dubrovnik', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Vukovar property:country ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q35
P530
Q15617994 Q1048835
USER
How many political territories have diplomatic associations with less number of administrative territories than Denmark ?
(c(Q1048835),P530,c(Q15617994))
action count
action less
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q35
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?k ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?e ) AS ?n ) WHERE { ?e rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q1048835 . ?d property:P530 ?e } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?z ) WHERE { resource:Q35 property:P530 ?x . ?x rdf:type ontology:Q1048835 } } . FILTER ( ?n < ?z ) }
Denmark
action count
action less
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Denmark
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?k ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?e ) AS ?n ) WHERE { ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:political_territorial_entity . ?d property:diplomatic_relation ?e } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?z ) WHERE { resource:Denmark property:diplomatic_relation ?x . ?x rdf:type ontology:political_territorial_entity } } . FILTER ( ?n < ?z ) }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
8
Q1000 Q781 Q778 Q769 Q685 Q691 Q664 Q766
(c(Q1048835),P530,c(Q15617994))
action count
action less
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q35
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?k ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?e ) AS ?n ) WHERE { ?e rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q1048835 . ?d property:P530 ?e } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?z ) WHERE { resource:Q35 property:P530 ?x . ?x rdf:type ontology:Q1048835 } } . FILTER ( ?n < ?z ) }
Gabon Antigua and Barbuda The Bahamas Grenada Solomon Islands Papua New Guinea New Zealand Jamaica
8
action count
action less
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Denmark
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?k ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?e ) AS ?n ) WHERE { ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:political_territorial_entity . ?d property:diplomatic_relation ?e } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?z ) WHERE { resource:Denmark property:diplomatic_relation ?x . ?x rdf:type ontology:political_territorial_entity } } . FILTER ( ?n < ?z ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q183
P530
Q15617994 Q1048835
USER
And how about Germany?
(c(Q1048835),P530,c(Q15617994))
action count
action less
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q183
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?t ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?x ) AS ?y ) WHERE { ?u property:P530 ?x . ?u rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q15617994 } GROUP BY ?u } . FILTER ( ?y < ?e ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?e ) WHERE { resource:Q183 property:P530 ?h . ?h rdf:type ontology:Q15617994 } } }
Germany
action count
action less
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Germany
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?t ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?x ) AS ?y ) WHERE { ?u property:diplomatic_relation ?x . ?u rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?u } . FILTER ( ?y < ?e ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?e ) WHERE { resource:Germany property:diplomatic_relation ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
12
Q1000 Q40 Q781 Q778 Q408 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q1048835),P530,c(Q15617994))
action count
action less
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q183
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?t ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?x ) AS ?y ) WHERE { ?u property:P530 ?x . ?u rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q15617994 } GROUP BY ?u } . FILTER ( ?y < ?e ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?e ) WHERE { resource:Q183 property:P530 ?h . ?h rdf:type ontology:Q15617994 } } }
Gabon Austria Antigua and Barbuda The Bahamas Australia Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
12
action count
action less
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Germany
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?t ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?x ) AS ?y ) WHERE { ?u property:diplomatic_relation ?x . ?u rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?u } . FILTER ( ?y < ?e ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?e ) WHERE { resource:Germany property:diplomatic_relation ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q224
P463
Q484652
USER
What international organizations were Croatia a member of ?
(Q224,P463,c(Q484652))
action filter_type
action find
entity Q224
relation P463
type Q484652
['Q224', 'P463', {'concept': 'Q484652'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q484652 . resource:Q224 property:P463 ?r }
Croatia
action filter_type
action find
entity Croatia
relation member of
type international organization
['Croatia', 'member of', {'concept': 'international organization'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:international_organization . resource:Croatia property:member_of ?r }
[]
international organization
Q81299 Q1065 Q7184
SYSTEM
Organization for Security and Co-operation in Europe, United Nations, North Atlantic Treaty Organisation
Q7184 Q81299 Q1065 Q1043527
(Q224,P463,c(Q484652))
action filter_type
action find
entity Q224
relation P463
type Q484652
Croatia were the [ANSWERS]
['Q224', 'P463', {'concept': 'Q484652'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q484652 . resource:Q224 property:P463 ?r }
North Atlantic Treaty Organisation Organization for Security and Co-operation in Europe United Nations Multilateral Investment Guarantee Agency
Croatia were the Organization for Security and Co-operation in Europe, United Nations and North Atlantic Treaty Organisation
Organization for Security and Co-operation in Europe United Nations North Atlantic Treaty Organisation
action filter_type
action find
entity Croatia
relation member of
type international organization
['Croatia', 'member of', {'concept': 'international organization'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:international_organization . resource:Croatia property:member_of ?r }
[]