Simple Question (Direct)
Simple Question
Q6280800
P241
Q781132
USER
Which military branch is Joseph A. Greco associated with ?
(Q6280800,P241,c(Q781132))
action filter_type
action find
entity Q6280800
relation P241
type Q781132
['Q6280800', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q781132 . resource:Q6280800 property:P241 ?u }
Joseph A. Greco
action filter_type
action find
entity Joseph A. Greco
relation military branch
type military branch
['Joseph A. Greco', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:military_branch . resource:Joseph_A._Greco property:military_branch ?u }
[]
military branch
Q9212
SYSTEM
United States Army
Q9212
(Q6280800,P241,c(Q781132))
action filter_type
action find
entity Q6280800
relation P241
type Q781132
Joseph A. Greco is associated with [ANSWER]
['Q6280800', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q781132 . resource:Q6280800 property:P241 ?u }
United States Army
Joseph A. Greco is associated with United States Army
United States Army
action filter_type
action find
entity Joseph A. Greco
relation military branch
type military branch
['Joseph A. Greco', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:military_branch . resource:Joseph_A._Greco property:military_branch ?u }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6280800
P607
Q198
USER
Which battle did that person take part in ?
(Q9212,P607,c(Q198))
action filter_type
action find
entity Q6280800
relation P607
type Q198
['Q9212', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?v WHERE { resource:Q6280800 property:P607 ?v . ?v rdf:type ontology:Q198 }
Joseph A. Greco
action filter_type
action find
entity Joseph A. Greco
relation conflict
type war
['United States Army', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?v WHERE { resource:Joseph_A._Greco property:conflict ?v . ?v rdf:type ontology:war }
[]
war
Q362
SYSTEM
World War II
Q362
(Q9212,P607,c(Q198))
action filter_type
action find
entity Q6280800
relation P607
type Q198
That person took in part in [ANSWER]
['Q9212', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?v WHERE { resource:Q6280800 property:P607 ?v . ?v rdf:type ontology:Q198 }
World War II
That person took in part in World War II
World War II
action filter_type
action find
entity Joseph A. Greco
relation conflict
type war
['United States Army', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?v WHERE { resource:Joseph_A._Greco property:conflict ?v . ?v rdf:type ontology:war }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q15224208 Q9212
P17
Q15617994
USER
Which administrative territories are United States Army or Hirapur (Vidhan Sabha constituency) a part of ?
OR((Q9212,P17,c(Q15617994)), (Q15224208,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q9212
relation P17
action find
entity Q15224208
relation P17
type Q15617994
{'OR': [['Q9212', 'P17', {'concept': 'Q15617994'}], ['Q15224208', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?a WHERE { { ?k property:P17 ?a . VALUES ( ?k ) { ( resource:Q15224208 ) ( resource:Q9212 ) } } . ?a rdf:type ontology:Q15617994 }
Hirapur (Vidhan Sabha constituency) United States Army
action filter_type
action union
action find
entity United States Army
relation country
action find
entity Hirapur (Vidhan Sabha constituency)
relation country
type designation for an administrative territorial entity
{'OR': [['United States Army', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Hirapur (Vidhan Sabha constituency)', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?a WHERE { { ?k property:country ?a . VALUES ( ?k ) { ( resource:Hirapur_(Vidhan_Sabha_constituency) ) ( resource:United_States_Army ) } } . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30 Q668
SYSTEM
United States of America, India
Q30 Q668
OR((Q9212,P17,c(Q15617994)), (Q15224208,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q9212
relation P17
action find
entity Q15224208
relation P17
type Q15617994
[ANSWERS] are United States Army or Hirapur (Vidhan Sabha constituency) a part of
{'OR': [['Q9212', 'P17', {'concept': 'Q15617994'}], ['Q15224208', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?a WHERE { { ?k property:P17 ?a . VALUES ( ?k ) { ( resource:Q15224208 ) ( resource:Q9212 ) } } . ?a rdf:type ontology:Q15617994 }
United States of America India
United States of America and India are United States Army or Hirapur (Vidhan Sabha constituency) a part of
United States of America India
action filter_type
action union
action find
entity United States Army
relation country
action find
entity Hirapur (Vidhan Sabha constituency)
relation country
type designation for an administrative territorial entity
{'OR': [['United States Army', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Hirapur (Vidhan Sabha constituency)', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?a WHERE { { ?k property:country ?a . VALUES ( ?k ) { ( resource:Hirapur_(Vidhan_Sabha_constituency) ) ( resource:United_States_Army ) } } . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q15617994
USER
How many administrative territories have diplomatic relations with atleast 46 administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action count
action atleast
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 46
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?j ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?m ) AS ?l ) WHERE { ?x property:P530 ?m . ?x rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q15617994 } GROUP BY ?x } . FILTER ( ?l >= 46 ) }
action count
action atleast
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 46
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?j ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?m ) AS ?l ) WHERE { ?x property:diplomatic_relation ?m . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?x } . FILTER ( ?l >= 46 ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
2
Q155 Q38
(c(Q15617994),P530,c(Q15617994))
action count
action atleast
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 46
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?j ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?m ) AS ?l ) WHERE { ?x property:P530 ?m . ?x rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q15617994 } GROUP BY ?x } . FILTER ( ?l >= 46 ) }
Brazil Italy
2
action count
action atleast
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 46
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?j ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?m ) AS ?l ) WHERE { ?x property:diplomatic_relation ?m . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?x } . FILTER ( ?l >= 46 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q668
P163
Q14660
USER
What is associated with India ?
(Q668,P163,c(Q14660))
action filter_type
action find
entity Q668
relation P163
type Q14660
['Q668', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?i WHERE { resource:Q668 property:P163 ?i . ?i rdf:type ontology:Q14660 }
India
action filter_type
action find
entity India
relation flag
type flag
['India', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?i WHERE { resource:India property:flag ?i . ?i rdf:type ontology:flag }
[]
flag
Q41673
SYSTEM
flag of India
Q41673
(Q668,P163,c(Q14660))
action filter_type
action find
entity Q668
relation P163
type Q14660
India [ANSWER] is associated with India
['Q668', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?i WHERE { resource:Q668 property:P163 ?i . ?i rdf:type ontology:Q14660 }
flag of India
India flag of India is associated with India
flag of India
action filter_type
action find
entity India
relation flag
type flag
['India', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?i WHERE { resource:India property:flag ?i . ?i rdf:type ontology:flag }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q41673 Q1392116
P287
Q502895
USER
Did Pingali Venkayya create the design for that flag ?
(Q41673,P287,Q1392116)
action is_in
entity Q1392116
action find
entity Q41673
relation P287
['Q41673', 'P287', 'Q1392116']
ASK WHERE { resource:Q41673 property:P287 resource:Q1392116 }
flag of India Pingali Venkayya
action is_in
entity Pingali Venkayya
action find
entity flag of India
relation designer
['flag of India', 'designer', 'Pingali Venkayya']
ASK WHERE { resource:flag_of_India property:designer resource:Pingali_Venkayya }
[]
common name
SYSTEM
YES
(Q41673,P287,Q1392116)
action is_in
entity Q1392116
action find
entity Q41673
relation P287
[ANSWER]
['Q41673', 'P287', 'Q1392116']
ASK WHERE { resource:Q41673 property:P287 resource:Q1392116 }
Yes
action is_in
entity Pingali Venkayya
action find
entity flag of India
relation designer
['flag of India', 'designer', 'Pingali Venkayya']
ASK WHERE { resource:flag_of_India property:designer resource:Pingali_Venkayya }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q362
P2348
Q491040
USER
Which violent crime occurred in the era of World War II ?
(c(Q491040),P2348,Q362)
action filter_type
action find_reverse
entity Q362
relation P2348
type Q491040
[{'concept': 'Q491040'}, 'P2348', 'Q362']
SELECT DISTINCT ?e WHERE { ?e property:P2348 resource:Q362 . ?e rdf:type ontology:Q491040 }
World War II
action filter_type
action find_reverse
entity World War II
relation period
type violent crime
[{'concept': 'violent crime'}, 'period', 'World War II']
SELECT DISTINCT ?e WHERE { ?e property:period resource:World_War_II . ?e rdf:type ontology:violent_crime }
[]
violent crime
Q3297473
SYSTEM
Sant'Anna di Stazzema massacre
Q3297473
(c(Q491040),P2348,Q362)
action filter_type
action find_reverse
entity Q362
relation P2348
type Q491040
[ANSWER] occurred in the era of World War II
[{'concept': 'Q491040'}, 'P2348', 'Q362']
SELECT DISTINCT ?e WHERE { ?e property:P2348 resource:Q362 . ?e rdf:type ontology:Q491040 }
Sant'Anna di Stazzema massacre
Sant'Anna di Stazzema massacre occurred in the era of World War II
Sant'Anna di Stazzema massacre
action filter_type
action find_reverse
entity World War II
relation period
type violent crime
[{'concept': 'violent crime'}, 'period', 'World War II']
SELECT DISTINCT ?e WHERE { ?e property:period resource:World_War_II . ?e rdf:type ontology:violent_crime }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q362
P710
Q15617994
USER
Who were the participants of World War II ?
(Q362,P710,c(Q15617994))
action filter_type
action find
entity Q362
relation P710
type Q15617994
['Q362', 'P710', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { resource:Q362 property:P710 ?h . ?h rdf:type ontology:Q15617994 }
World War II
action filter_type
action find
entity World War II
relation participant
type designation for an administrative territorial entity
['World War II', 'participant', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:World_War_II property:participant ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38 Q30 Q142
SYSTEM
Italy, United States of America, France
Q142 Q17 Q30 Q38 Q145
(Q362,P710,c(Q15617994))
action filter_type
action find
entity Q362
relation P710
type Q15617994
The participants of World War II were [ANSWERS]
['Q362', 'P710', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { resource:Q362 property:P710 ?h . ?h rdf:type ontology:Q15617994 }
France Japan United States of America Italy United Kingdom
The participants of World War II were Italy, United States of America and France
Italy United States of America France
action filter_type
action find
entity World War II
relation participant
type designation for an administrative territorial entity
['World War II', 'participant', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:World_War_II property:participant ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
Incomplete|object parent is changed, subject and predicate remain same
Q362
Q1048835
USER
And which political territory?
(Q362,P710,c(Q1048835))
action filter_type
action find
entity Q362
relation P710
type Q1048835
['Q362', 'P710', {'concept': 'Q1048835'}]
SELECT DISTINCT ?o WHERE { resource:Q362 property:P710 ?o . ?o rdf:type ontology:Q1048835 }
World War II
action filter_type
action find
entity World War II
relation participant
type political territorial entity
['World War II', 'participant', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:World_War_II property:participant ?o . ?o rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q362,P710,c(Q1048835))
action filter_type
action find
entity Q362
relation P710
type Q1048835
[ANSWER]
['Q362', 'P710', {'concept': 'Q1048835'}]
SELECT DISTINCT ?o WHERE { resource:Q362 property:P710 ?o . ?o rdf:type ontology:Q1048835 }
Germany
Germany
action filter_type
action find
entity World War II
relation participant
type political territorial entity
['World War II', 'participant', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:World_War_II property:participant ?o . ?o rdf:type ontology:political_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Indirect
P1427
Q1048835 Q2912397
USER
Which political territories do greater number of single-day races originate from than that political territory ?
(c(Q2912397),P1427,c(Q1048835))
action greater
action find_reverse_tuple_counts
relation P1427
type Q1048835
type Q2912397
action count
action filter_type
action find
entity Q183
relation P1427
type Q1048835
[{'concept': 'Q2912397'}, 'P1427', {'concept': 'Q1048835'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?p ) AS ?t ) WHERE { ?p property:P1427 ?s . ?s rdf:type ontology:Q1048835 . ?p rdf:type ontology:Q2912397 } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?o ) WHERE { ?k rdf:type ontology:Q1048835 . resource:Q183 property:P1427 ?k } } . FILTER ( ?t > ?o ) }
action greater
action find_reverse_tuple_counts
relation start point
type political territorial entity
type single-day race
action count
action filter_type
action find
entity Germany
relation start point
type political territorial entity
[{'concept': 'single-day race'}, 'start point', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?p ) AS ?t ) WHERE { ?p property:start_point ?s . ?s rdf:type ontology:political_territorial_entity . ?p rdf:type ontology:single-day_race } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?o ) WHERE { ?k rdf:type ontology:political_territorial_entity . resource:Germany property:start_point ?k } } . FILTER ( ?t > ?o ) }
[]
political territorial entity single-day race
Q492420 Q672483
SYSTEM
Getxo, Ordizia
Q492420 Q672483
(c(Q2912397),P1427,c(Q1048835))
action greater
action find_reverse_tuple_counts
relation P1427
type Q1048835
type Q2912397
action count
action filter_type
action find
entity Q183
relation P1427
type Q1048835
[ANSWERS] greater number of single-day races originate from than that political territory
[{'concept': 'Q2912397'}, 'P1427', {'concept': 'Q1048835'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?p ) AS ?t ) WHERE { ?p property:P1427 ?s . ?s rdf:type ontology:Q1048835 . ?p rdf:type ontology:Q2912397 } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?o ) WHERE { ?k rdf:type ontology:Q1048835 . resource:Q183 property:P1427 ?k } } . FILTER ( ?t > ?o ) }
Getxo Ordizia
Getxo and Ordizia greater number of single-day races originate from than that political territory
Getxo Ordizia
action greater
action find_reverse_tuple_counts
relation start point
type political territorial entity
type single-day race
action count
action filter_type
action find
entity Germany
relation start point
type political territorial entity
[{'concept': 'single-day race'}, 'start point', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?p ) AS ?t ) WHERE { ?p property:start_point ?s . ?s rdf:type ontology:political_territorial_entity . ?p rdf:type ontology:single-day_race } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?o ) WHERE { ?k rdf:type ontology:political_territorial_entity . resource:Germany property:start_point ?k } } . FILTER ( ?t > ?o ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q1000
P530
Q1048835 Q1048835
USER
How many political territories have diplomatic associations with approximately the same number of political territories as Gabon ?
(c(Q1048835),P530,c(Q1048835))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q1000
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?n ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?w ) AS ?e ) WHERE { ?d rdf:type ontology:Q1048835 . ?w rdf:type ontology:Q1048835 . ?d property:P530 ?w } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?y ) WHERE { resource:Q1000 property:P530 ?b . ?b rdf:type ontology:Q1048835 } } . FILTER ( ?e = ?y ) }
Gabon
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity Gabon
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?n ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?w ) AS ?e ) WHERE { ?d rdf:type ontology:political_territorial_entity . ?w rdf:type ontology:political_territorial_entity . ?d property:diplomatic_relation ?w } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?y ) WHERE { resource:Gabon property:diplomatic_relation ?b . ?b rdf:type ontology:political_territorial_entity } } . FILTER ( ?e = ?y ) }
[]
political territorial entity political territorial entity
SYSTEM
10
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q664 Q766
(c(Q1048835),P530,c(Q1048835))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q1000
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?n ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?w ) AS ?e ) WHERE { ?d rdf:type ontology:Q1048835 . ?w rdf:type ontology:Q1048835 . ?d property:P530 ?w } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?y ) WHERE { resource:Q1000 property:P530 ?b . ?b rdf:type ontology:Q1048835 } } . FILTER ( ?e = ?y ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea New Zealand Jamaica
10
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity Gabon
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?n ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?w ) AS ?e ) WHERE { ?d rdf:type ontology:political_territorial_entity . ?w rdf:type ontology:political_territorial_entity . ?d property:diplomatic_relation ?w } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?y ) WHERE { resource:Gabon property:diplomatic_relation ?b . ?b rdf:type ontology:political_territorial_entity } } . FILTER ( ?e = ?y ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q766
P530
Q1048835 Q1048835
USER
And what about Jamaica?
(c(Q1048835),P530,c(Q1048835))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q766
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?s ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?z ) AS ?m ) WHERE { ?x property:P530 ?z . ?x rdf:type ontology:Q1048835 . ?z rdf:type ontology:Q1048835 } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?c ) WHERE { ?a rdf:type ontology:Q1048835 . resource:Q766 property:P530 ?a } } . FILTER ( ?m = ?c ) }
Jamaica
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity Jamaica
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?s ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?z ) AS ?m ) WHERE { ?x property:diplomatic_relation ?z . ?x rdf:type ontology:political_territorial_entity . ?z rdf:type ontology:political_territorial_entity } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?c ) WHERE { ?a rdf:type ontology:political_territorial_entity . resource:Jamaica property:diplomatic_relation ?a } } . FILTER ( ?m = ?c ) }
[]
political territorial entity political territorial entity
SYSTEM
10
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q664 Q766
(c(Q1048835),P530,c(Q1048835))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q766
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?s ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?z ) AS ?m ) WHERE { ?x property:P530 ?z . ?x rdf:type ontology:Q1048835 . ?z rdf:type ontology:Q1048835 } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?c ) WHERE { ?a rdf:type ontology:Q1048835 . resource:Q766 property:P530 ?a } } . FILTER ( ?m = ?c ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea New Zealand Jamaica
10
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity Jamaica
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?s ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?z ) AS ?m ) WHERE { ?x property:diplomatic_relation ?z . ?x rdf:type ontology:political_territorial_entity . ?z rdf:type ontology:political_territorial_entity } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?c ) WHERE { ?a rdf:type ontology:political_territorial_entity . resource:Jamaica property:diplomatic_relation ?a } } . FILTER ( ?m = ?c ) }
[]