Simple Question (Direct)
Simple Question
Q4360860
P27
Q7275
USER
Which state does Sergey Petrov belong to ?
(Q4360860,P27,c(Q7275))
action filter_type
action find
entity Q4360860
relation P27
type Q7275
['Q4360860', 'P27', {'concept': 'Q7275'}]
SELECT DISTINCT ?h WHERE { resource:Q4360860 property:P27 ?h . ?h rdf:type ontology:Q7275 }
Sergey Petrov
action filter_type
action find
entity Sergey Petrov
relation country of citizenship
type state
['Sergey Petrov', 'country of citizenship', {'concept': 'state'}]
SELECT DISTINCT ?h WHERE { resource:Sergey_Petrov property:country_of_citizenship ?h . ?h rdf:type ontology:state }
[]
state
Q15180
SYSTEM
Soviet Union
Q15180
(Q4360860,P27,c(Q7275))
action filter_type
action find
entity Q4360860
relation P27
type Q7275
Sergey Petrov belongs to [ANSWER]
['Q4360860', 'P27', {'concept': 'Q7275'}]
SELECT DISTINCT ?h WHERE { resource:Q4360860 property:P27 ?h . ?h rdf:type ontology:Q7275 }
Soviet Union
Sergey Petrov belongs to Soviet Union
Soviet Union
action filter_type
action find
entity Sergey Petrov
relation country of citizenship
type state
['Sergey Petrov', 'country of citizenship', {'concept': 'state'}]
SELECT DISTINCT ?h WHERE { resource:Sergey_Petrov property:country_of_citizenship ?h . ?h rdf:type ontology:state }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q15180
P1532
Q502895
USER
Whose people are that state ?
(c(Q502895),P1532,Q15180)
action filter_type
action find_reverse
entity Q15180
relation P1532
type Q502895
[{'concept': 'Q502895'}, 'P1532', 'Q15180']
SELECT DISTINCT ?d WHERE { ?d property:P1532 resource:Q15180 . ?d rdf:type ontology:Q502895 }
Soviet Union
action filter_type
action find_reverse
entity Soviet Union
relation country for sport
type common name
[{'concept': 'common name'}, 'country for sport', 'Soviet Union']
SELECT DISTINCT ?d WHERE { ?d property:country_for_sport resource:Soviet_Union . ?d rdf:type ontology:common_name }
[]
common name
Q16027962 Q23907451 Q22083771
SYSTEM
Dmitriy Golovastov, Mikhail Dasko, Sergey Usov
Q24260019 Q23009948 Q23825718 Q519287 Q12875297 Q22968970 Q22083771 Q4156355 Q24196122 Q23043630 Q5285499 Q11790031 Q22679553 Q24260158 Q26197060 Q3561782 Q23837660 Q23833052 Q9336218 Q15728084 Q15894440 Q21675869 Q21673736 Q2272717 Q1187700 Q23833602 Q349863 Q16027962 Q23012839 Q24260264 Q26197079 Q275093 Q23907451
(c(Q502895),P1532,Q15180)
action filter_type
action find_reverse
entity Q15180
relation P1532
type Q502895
[ANSWERS] are that state
[{'concept': 'Q502895'}, 'P1532', 'Q15180']
SELECT DISTINCT ?d WHERE { ?d property:P1532 resource:Q15180 . ?d rdf:type ontology:Q502895 }
Irena Ozhenko Irina Bondarchuk Stanislav Vezhel Marina Ivanova-Kharlamova Yuri Filippov Nadezhda Stepanova Sergey Usov Aleksandra Grigoryeva Sergey Gavryushin Andrey Sudnik Dmitri Gromov Natalya Shubenkova Eva Sokolova Lyubov Smolka Vera Chuvashova Vladimir Graudyn Aleksandr Shcherbina Anatoliy Gorshkov Sergey Kasnauskas Tamara Sorokina Tatyana Grebenchuk Pavel Galkin Olga Gavrilova Sergey Nikolayev Denis Kapustin Natalya Serbinenko Ruslan Ashuraliyev Dmitriy Golovastov Lidiya Yurkova Vyacheslav Korovin Marina Antonyuk Valentina Tikhomirova Mikhail Dasko
Dmitriy Golovastov, Mikhail Dasko and Sergey Usov are that state
Dmitriy Golovastov Mikhail Dasko Sergey Usov
action filter_type
action find_reverse
entity Soviet Union
relation country for sport
type common name
[{'concept': 'common name'}, 'country for sport', 'Soviet Union']
SELECT DISTINCT ?d WHERE { ?d property:country_for_sport resource:Soviet_Union . ?d rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q23907451
P19
Q1048835
USER
Which political territory was that person born at ?
(Q23907451,P19,c(Q1048835))
action filter_type
action find
entity Q23907451
relation P19
type Q1048835
['Q23907451', 'P19', {'concept': 'Q1048835'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q1048835 . resource:Q23907451 property:P19 ?l }
Mikhail Dasko
action filter_type
action find
entity Mikhail Dasko
relation place of birth
type political territorial entity
['Mikhail Dasko', 'place of birth', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:political_territorial_entity . resource:Mikhail_Dasko property:place_of_birth ?l }
[]
political territorial entity
Clarification for simple ques.
Q22083771
SYSTEM
Did you mean Sergey Usov ?
Q16027962 Q23907451 Q22083771
(Q16027962,P19,c(Q1048835)) (Q23907451,P19,c(Q1048835)) (Q22083771,P19,c(Q1048835))
[ANSWER]
['Q16027962', 'P19', {'concept': 'Q1048835'}] ['Q23907451', 'P19', {'concept': 'Q1048835'}] ['Q22083771', 'P19', {'concept': 'Q1048835'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q1048835 . resource:Q23907451 property:P19 ?l }
Dmitriy Golovastov Mikhail Dasko Sergey Usov
Did you mean Sergey Usov ?
Sergey Usov
['Dmitriy Golovastov', 'place of birth', {'concept': 'political territorial entity'}] ['Mikhail Dasko', 'place of birth', {'concept': 'political territorial entity'}] ['Sergey Usov', 'place of birth', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:political_territorial_entity . resource:Mikhail_Dasko property:place_of_birth ?l }
[]
Simple Question (Coreferenced)
USER
No, I meant Mikhail Dasko. Could you tell me the answer for that?
(Q23907451,P19,c(Q1048835))
Q23907451
['Q23907451', 'P19', {'concept': 'Q1048835'}]
['Mikhail Dasko', 'place of birth', {'concept': 'political territorial entity'}]
[]
Q188732
SYSTEM
Gomel Region
Q188732
(Q23907451,P19,c(Q1048835))
action filter_type
action find
entity Q23907451
relation P19
type Q1048835
That person was born in [ANSWER]
['Q23907451', 'P19', {'concept': 'Q1048835'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q1048835 . resource:Q23907451 property:P19 ?l }
Gomel Region
That person was born in Gomel Region
Gomel Region
action filter_type
action find
entity Mikhail Dasko
relation place of birth
type political territorial entity
['Mikhail Dasko', 'place of birth', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:political_territorial_entity . resource:Mikhail_Dasko property:place_of_birth ?l }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q188732
P36
Q56061
USER
Which administrative territory is known as the capital of that political territory ?
(Q188732,P36,c(Q56061))
action filter_type
action find
entity Q188732
relation P36
type Q56061
['Q188732', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?u WHERE { resource:Q188732 property:P36 ?u . ?u rdf:type ontology:Q56061 }
Gomel Region
action filter_type
action find
entity Gomel Region
relation capital
type administrative territorial entity
['Gomel Region', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Gomel_Region property:capital ?u . ?u rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q2678
SYSTEM
Gomel
Q2678
(Q188732,P36,c(Q56061))
action filter_type
action find
entity Q188732
relation P36
type Q56061
[ANSWER] is known as the capital of that political territory
['Q188732', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?u WHERE { resource:Q188732 property:P36 ?u . ?u rdf:type ontology:Q56061 }
Gomel
Gomel is known as the capital of that political territory
Gomel
action filter_type
action find
entity Gomel Region
relation capital
type administrative territorial entity
['Gomel Region', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Gomel_Region property:capital ?u . ?u rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q2678 Q5706779 Q18682854
P190
Q56061
USER
Is Gomel sister town of Faqer Khadariyan and Viinijärvi ?
(Q2678,P190,Q5706779) (Q2678,P190,Q18682854)
action is_in
entity Q2678
action intersection
action find_reverse
entity Q5706779
relation P190
action find_reverse
entity Q18682854
relation P190
['Q2678', 'P190', 'Q5706779'] ['Q2678', 'P190', 'Q18682854']
ASK WHERE { resource:Q2678 property:P190 resource:Q5706779 . resource:Q2678 property:P190 resource:Q18682854 }
Gomel Faqer Khadariyan Viinijärvi
action is_in
entity Gomel
action intersection
action find_reverse
entity Faqer Khadariyan
relation sister city
action find_reverse
entity Viinijärvi
relation sister city
['Gomel', 'sister city', 'Faqer Khadariyan'] ['Gomel', 'sister city', 'Viinijärvi']
ASK WHERE { resource:Gomel property:sister_city resource:Faqer_Khadariyan . resource:Gomel property:sister_city resource:Viinijärvi }
[]
administrative territorial entity
SYSTEM
NO
(Q2678,P190,Q5706779) (Q2678,P190,Q18682854)
action is_in
entity Q2678
action intersection
action find_reverse
entity Q5706779
relation P190
action find_reverse
entity Q18682854
relation P190
[ANSWER]
['Q2678', 'P190', 'Q5706779'] ['Q2678', 'P190', 'Q18682854']
ASK WHERE { resource:Q2678 property:P190 resource:Q5706779 . resource:Q2678 property:P190 resource:Q18682854 }
No
action is_in
entity Gomel
action intersection
action find_reverse
entity Faqer Khadariyan
relation sister city
action find_reverse
entity Viinijärvi
relation sister city
['Gomel', 'sister city', 'Faqer Khadariyan'] ['Gomel', 'sister city', 'Viinijärvi']
ASK WHERE { resource:Gomel property:sister_city resource:Faqer_Khadariyan . resource:Gomel property:sister_city resource:Viinijärvi }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q283493 Q23907451
P27 P1532
Q15617994
USER
Which administrative territories are represented by Mikhail Dasko and are the countries of citizenship of Sergei Mavrodi ?
AND((Q23907451,P1532,c(Q15617994)), (Q283493,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q23907451
relation P1532
action find
entity Q283493
relation P27
type Q15617994
{'AND': [['Q23907451', 'P1532', {'concept': 'Q15617994'}], ['Q283493', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q15617994 . resource:Q283493 property:P27 ?e . resource:Q23907451 property:P1532 ?e }
Sergei Mavrodi Mikhail Dasko
action filter_type
action intersection
action find
entity Mikhail Dasko
relation country for sport
action find
entity Sergei Mavrodi
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Mikhail Dasko', 'country for sport', {'concept': 'designation for an administrative territorial entity'}], ['Sergei Mavrodi', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Sergei_Mavrodi property:country_of_citizenship ?e . resource:Mikhail_Dasko property:country_for_sport ?e }
[]
designation for an administrative territorial entity
Q159
SYSTEM
Russia
Q159
AND((Q23907451,P1532,c(Q15617994)), (Q283493,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q23907451
relation P1532
action find
entity Q283493
relation P27
type Q15617994
[ANSWER] is represented by Mikhail Dasko and is the countries of citizenship of Sergei Mavrodi
{'AND': [['Q23907451', 'P1532', {'concept': 'Q15617994'}], ['Q283493', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q15617994 . resource:Q283493 property:P27 ?e . resource:Q23907451 property:P1532 ?e }
Russia
Russia is represented by Mikhail Dasko and is the countries of citizenship of Sergei Mavrodi
Russia
action filter_type
action intersection
action find
entity Mikhail Dasko
relation country for sport
action find
entity Sergei Mavrodi
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Mikhail Dasko', 'country for sport', {'concept': 'designation for an administrative territorial entity'}], ['Sergei Mavrodi', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Sergei_Mavrodi property:country_of_citizenship ?e . resource:Mikhail_Dasko property:country_for_sport ?e }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q15617994
USER
Which political territories holds diplomatic relationship with exactly 1 administrative territory ?
(c(Q15617994),P530,c(Q1048835))
action equal
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 1
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?x ) AS ?l ) WHERE { ?s property:P530 ?x . ?s rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q15617994 } GROUP BY ?s } . FILTER ( ?l = 1 ) }
action equal
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?x ) AS ?l ) WHERE { ?s property:diplomatic_relation ?x . ?s rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?s } . FILTER ( ?l = 1 ) }
[]
political territorial entity designation for an administrative territorial entity
Q1000 Q769 Q778
SYSTEM
Gabon, Grenada, The Bahamas
Q1000 Q781 Q778 Q769
(c(Q15617994),P530,c(Q1048835))
action equal
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 1
[ANSWERS] hold diplomatic relationship with exactly 1 administrative territory
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?x ) AS ?l ) WHERE { ?s property:P530 ?x . ?s rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q15617994 } GROUP BY ?s } . FILTER ( ?l = 1 ) }
Gabon Antigua and Barbuda The Bahamas Grenada
Gabon, Grenada and The Bahamas hold diplomatic relationship with exactly 1 administrative territory
Gabon Grenada The Bahamas
action equal
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?x ) AS ?l ) WHERE { ?s property:diplomatic_relation ?x . ?s rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?s } . FILTER ( ?l = 1 ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q35
P530
Q1048835 Q1048835
USER
Which political territories have diplomatic relationships with less number of political territories than Denmark ?
(c(Q1048835),P530,c(Q1048835))
action less
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q35
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?k ) AS ?l ) WHERE { ?i property:P530 ?k . ?i rdf:type ontology:Q1048835 . ?k rdf:type ontology:Q1048835 } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?g ) WHERE { ?w rdf:type ontology:Q1048835 . resource:Q35 property:P530 ?w } } . FILTER ( ?l < ?g ) }
Denmark
action less
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political 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': 'political territorial entity'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?k ) AS ?l ) WHERE { ?i property:diplomatic_relation ?k . ?i rdf:type ontology:political_territorial_entity . ?k rdf:type ontology:political_territorial_entity } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?g ) WHERE { ?w rdf:type ontology:political_territorial_entity . resource:Denmark property:diplomatic_relation ?w } } . FILTER ( ?l < ?g ) }
[]
political territorial entity political territorial entity
Q40 Q1000 Q769
SYSTEM
Austria, Gabon, Grenada
Q1000 Q40 Q781 Q778 Q769 Q685 Q691 Q766
(c(Q1048835),P530,c(Q1048835))
action less
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q35
relation P530
type Q1048835
[ANSWERS] have diplomatic relationships with less number of political territories than Denmark
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?k ) AS ?l ) WHERE { ?i property:P530 ?k . ?i rdf:type ontology:Q1048835 . ?k rdf:type ontology:Q1048835 } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?g ) WHERE { ?w rdf:type ontology:Q1048835 . resource:Q35 property:P530 ?w } } . FILTER ( ?l < ?g ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Papua New Guinea Jamaica
Austria, Gabon and Grenada have diplomatic relationships with less number of political territories than Denmark
Austria Gabon Grenada
action less
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political 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': 'political territorial entity'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?k ) AS ?l ) WHERE { ?i property:diplomatic_relation ?k . ?i rdf:type ontology:political_territorial_entity . ?k rdf:type ontology:political_territorial_entity } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?g ) WHERE { ?w rdf:type ontology:political_territorial_entity . resource:Denmark property:diplomatic_relation ?w } } . FILTER ( ?l < ?g ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q664
P530
Q1048835 Q1048835
USER
And how about New Zealand?
(c(Q1048835),P530,c(Q1048835))
action less
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q664
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?d ) AS ?u ) WHERE { ?e property:P530 ?d . ?e rdf:type ontology:Q1048835 . ?d rdf:type ontology:Q1048835 } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?p ) WHERE { ?z rdf:type ontology:Q1048835 . resource:Q664 property:P530 ?z } } . FILTER ( ?u < ?p ) }
New Zealand
action less
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity New Zealand
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?d ) AS ?u ) WHERE { ?e property:diplomatic_relation ?d . ?e rdf:type ontology:political_territorial_entity . ?d rdf:type ontology:political_territorial_entity } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?p ) WHERE { ?z rdf:type ontology:political_territorial_entity . resource:New_Zealand property:diplomatic_relation ?z } } . FILTER ( ?u < ?p ) }
[]
political territorial entity political territorial entity
Q40 Q1000 Q769
SYSTEM
Austria, Gabon, Grenada
Q1000 Q40 Q781 Q778 Q769 Q685 Q691 Q766
(c(Q1048835),P530,c(Q1048835))
action less
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q664
relation P530
type Q1048835
[ANSWERS]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?d ) AS ?u ) WHERE { ?e property:P530 ?d . ?e rdf:type ontology:Q1048835 . ?d rdf:type ontology:Q1048835 } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?p ) WHERE { ?z rdf:type ontology:Q1048835 . resource:Q664 property:P530 ?z } } . FILTER ( ?u < ?p ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Papua New Guinea Jamaica
Austria Gabon Grenada
action less
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity New Zealand
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?d ) AS ?u ) WHERE { ?e property:diplomatic_relation ?d . ?e rdf:type ontology:political_territorial_entity . ?d rdf:type ontology:political_territorial_entity } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?p ) WHERE { ?z rdf:type ontology:political_territorial_entity . resource:New_Zealand property:diplomatic_relation ?z } } . FILTER ( ?u < ?p ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P530
Q1048835 Q1048835 Q15617994
USER
How many political territories holds diplomatic relationship with atleast 103 political territories or administrative territories ?
(c(Q1048835)|c(Q15617994),P530,c(Q1048835))
action count
action atleast
action union
action find_reverse_tuple_counts
relation P530
type Q1048835
type Q1048835
action find_reverse_tuple_counts
relation P530
type Q1048835
type Q15617994
value 103
[[{'concept': 'Q1048835'}, {'concept': 'Q15617994'}], 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?b ) WHERE { FILTER ( ?j >= 103 ) . { SELECT DISTINCT ?a ( COUNT ( ?o ) AS ?j ) WHERE { VALUES ( ?z ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } . ?o rdf:type ?z } GROUP BY ?a } }
action count
action atleast
action union
action find_reverse_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 103
[[{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}], 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?b ) WHERE { FILTER ( ?j >= 103 ) . { SELECT DISTINCT ?a ( COUNT ( ?o ) AS ?j ) WHERE { VALUES ( ?z ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?o rdf:type ?z } GROUP BY ?a } }
[]
political territorial entity political territorial entity designation for an administrative territorial entity
SYSTEM
2
Q183 Q408
(c(Q1048835)|c(Q15617994),P530,c(Q1048835))
action count
action atleast
action union
action find_reverse_tuple_counts
relation P530
type Q1048835
type Q1048835
action find_reverse_tuple_counts
relation P530
type Q1048835
type Q15617994
value 103
[ANSWER]
[[{'concept': 'Q1048835'}, {'concept': 'Q15617994'}], 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?b ) WHERE { FILTER ( ?j >= 103 ) . { SELECT DISTINCT ?a ( COUNT ( ?o ) AS ?j ) WHERE { VALUES ( ?z ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } . ?o rdf:type ?z } GROUP BY ?a } }
Germany Australia
2
action count
action atleast
action union
action find_reverse_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 103
[[{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}], 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?b ) WHERE { FILTER ( ?j >= 103 ) . { SELECT DISTINCT ?a ( COUNT ( ?o ) AS ?j ) WHERE { VALUES ( ?z ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?o rdf:type ?z } GROUP BY ?a } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q40
P1001
Q1269299
USER
Which business organizations have control over the jurisdiction of Austria ?
(c(Q1269299),P1001,Q40)
action filter_type
action find_reverse
entity Q40
relation P1001
type Q1269299
[{'concept': 'Q1269299'}, 'P1001', 'Q40']
SELECT DISTINCT ?t WHERE { ?t property:P1001 resource:Q40 . ?t rdf:type ontology:Q1269299 }
Austria
action filter_type
action find_reverse
entity Austria
relation applies to jurisdiction
type type of business entity
[{'concept': 'type of business entity'}, 'applies to jurisdiction', 'Austria']
SELECT DISTINCT ?t WHERE { ?t property:applies_to_jurisdiction resource:Austria . ?t rdf:type ontology:type_of_business_entity }
[]
type of business entity
Q396060 Q875765 Q1796671
SYSTEM
Agrargemeinschaft, Aktiengesellschaft, Körperschaft des öffentlichen Rechts
Q875765 Q1796671 Q396060 Q1518609
(c(Q1269299),P1001,Q40)
action filter_type
action find_reverse
entity Q40
relation P1001
type Q1269299
[ANSWERS] have control over the jurisdiction of Austria
[{'concept': 'Q1269299'}, 'P1001', 'Q40']
SELECT DISTINCT ?t WHERE { ?t property:P1001 resource:Q40 . ?t rdf:type ontology:Q1269299 }
Aktiengesellschaft Körperschaft des öffentlichen Rechts Agrargemeinschaft Gesellschaft mit beschränkter Haftung
Agrargemeinschaft, Aktiengesellschaft and Körperschaft des öffentlichen Rechts have control over the jurisdiction of Austria
Agrargemeinschaft Aktiengesellschaft Körperschaft des öffentlichen Rechts
action filter_type
action find_reverse
entity Austria
relation applies to jurisdiction
type type of business entity
[{'concept': 'type of business entity'}, 'applies to jurisdiction', 'Austria']
SELECT DISTINCT ?t WHERE { ?t property:applies_to_jurisdiction resource:Austria . ?t rdf:type ontology:type_of_business_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q40
P85
Q484692
USER
What is the national anthem of Austria ?
(Q40,P85,c(Q484692))
action filter_type
action find
entity Q40
relation P85
type Q484692
['Q40', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?a WHERE { resource:Q40 property:P85 ?a . ?a rdf:type ontology:Q484692 }
Austria
action filter_type
action find
entity Austria
relation anthem
type hymn
['Austria', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?a WHERE { resource:Austria property:anthem ?a . ?a rdf:type ontology:hymn }
[]
hymn
Q126658
SYSTEM
Land der Berge, Land am Strome
Q126658
(Q40,P85,c(Q484692))
action filter_type
action find
entity Q40
relation P85
type Q484692
The national anthem of Austria is [ANSWER]
['Q40', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?a WHERE { resource:Q40 property:P85 ?a . ?a rdf:type ontology:Q484692 }
Land der Berge, Land am Strome
The national anthem of Austria is Land der Berge, Land am Strome
Land der Berge, Land am Strome
action filter_type
action find
entity Austria
relation anthem
type hymn
['Austria', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?a WHERE { resource:Austria property:anthem ?a . ?a rdf:type ontology:hymn }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q5710
Q484692
USER
And also tell me about Republic of Bashkortostan?
(Q5710,P85,c(Q484692))
action filter_type
action find
entity Q5710
relation P85
type Q484692
['Q5710', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q484692 . resource:Q5710 property:P85 ?i }
Republic of Bashkortostan
action filter_type
action find
entity Republic of Bashkortostan
relation anthem
type hymn
['Republic of Bashkortostan', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:hymn . resource:Republic_of_Bashkortostan property:anthem ?i }
[]
hymn
Q1376659
SYSTEM
National Anthem of the Republic of Bashkortostan
Q1376659
(Q5710,P85,c(Q484692))
action filter_type
action find
entity Q5710
relation P85
type Q484692
[ANSWER]
['Q5710', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q484692 . resource:Q5710 property:P85 ?i }
National Anthem of the Republic of Bashkortostan
National Anthem of the Republic of Bashkortostan
action filter_type
action find
entity Republic of Bashkortostan
relation anthem
type hymn
['Republic of Bashkortostan', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:hymn . resource:Republic_of_Bashkortostan property:anthem ?i }
[]