Simple Question (Direct)
Simple Question
Q231009
P27
Q15617994
USER
Which administrative territory is the native country of Wang Meng ?
(Q231009,P27,c(Q15617994))
action filter_type
action find
entity Q231009
relation P27
type Q15617994
['Q231009', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { resource:Q231009 property:P27 ?x . ?x rdf:type ontology:Q15617994 }
Wang Meng
action filter_type
action find
entity Wang Meng
relation country of citizenship
type designation for an administrative territorial entity
['Wang Meng', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Wang_Meng property:country_of_citizenship ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q148
SYSTEM
People's Republic of China
Q148
(Q231009,P27,c(Q15617994))
action filter_type
action find
entity Q231009
relation P27
type Q15617994
[ANSWER] is the native country of Wang Meng
['Q231009', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { resource:Q231009 property:P27 ?x . ?x rdf:type ontology:Q15617994 }
People's Republic of China
People's Republic of China is the native country of Wang Meng
People's Republic of China
action filter_type
action find
entity Wang Meng
relation country of citizenship
type designation for an administrative territorial entity
['Wang Meng', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Wang_Meng property:country_of_citizenship ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q148
P361
Q102786
USER
What is that administrative territory a component of ?
(Q148,P361,c(Q102786))
action filter_type
action find
entity Q148
relation P361
type Q102786
['Q148', 'P361', {'concept': 'Q102786'}]
SELECT DISTINCT ?z WHERE { resource:Q148 property:P361 ?z . ?z rdf:type ontology:Q102786 }
People's Republic of China
action filter_type
action find
entity People's Republic of China
relation part of
type abbreviation
["People's Republic of China", 'part of', {'concept': 'abbreviation'}]
SELECT DISTINCT ?z WHERE { resource:People's_Republic_of_China property:part_of ?z . ?z rdf:type ontology:abbreviation }
[]
abbreviation
Q833202
SYSTEM
BRIC
Q833202
(Q148,P361,c(Q102786))
action filter_type
action find
entity Q148
relation P361
type Q102786
That administrative territory a component of is a [ANSWER]
['Q148', 'P361', {'concept': 'Q102786'}]
SELECT DISTINCT ?z WHERE { resource:Q148 property:P361 ?z . ?z rdf:type ontology:Q102786 }
BRIC
That administrative territory a component of is a BRIC
BRIC
action filter_type
action find
entity People's Republic of China
relation part of
type abbreviation
["People's Republic of China", 'part of', {'concept': 'abbreviation'}]
SELECT DISTINCT ?z WHERE { resource:People's_Republic_of_China property:part_of ?z . ?z rdf:type ontology:abbreviation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q148
P47
Q15617994
USER
Which administrative territories have a shared border with People's Republic of China ?
(Q148,P47,c(Q15617994))
action filter_type
action find
entity Q148
relation P47
type Q15617994
['Q148', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { resource:Q148 property:P47 ?e . ?e rdf:type ontology:Q15617994 }
People's Republic of China
action filter_type
action find
entity People's Republic of China
relation shares border with
type designation for an administrative territorial entity
["People's Republic of China", 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:People's_Republic_of_China property:shares_border_with ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q159 Q17 Q668
SYSTEM
Russia, Japan, India
Q711 Q836 Q837 Q232 Q813 Q843 Q819 Q863 Q17 Q917 Q889 Q668 Q423 Q159 Q884 Q881
(Q148,P47,c(Q15617994))
action filter_type
action find
entity Q148
relation P47
type Q15617994
[ANSWERS] have a shared border with People's Republic of China
['Q148', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { resource:Q148 property:P47 ?e . ?e rdf:type ontology:Q15617994 }
Mongolia Myanmar Nepal Kazakhstan Kyrgyzstan Pakistan Laos Tajikistan Japan Bhutan Afghanistan India North Korea Russia South Korea Vietnam
Russia, Japan and India have a shared border with People's Republic of China
Russia Japan India
action filter_type
action find
entity People's Republic of China
relation shares border with
type designation for an administrative territorial entity
["People's Republic of China", 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:People's_Republic_of_China property:shares_border_with ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q1048835
USER
Which political territories have diplomatic relations with atmost 77 administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action atmost
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 77
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?k ) AS ?f ) WHERE { ?j property:P530 ?k . ?j rdf:type ontology:Q1048835 . ?k rdf:type ontology:Q15617994 } GROUP BY ?j } . FILTER ( ?f <= 77 ) }
action atmost
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 77
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?k ) AS ?f ) WHERE { ?j property:diplomatic_relation ?k . ?j rdf:type ontology:political_territorial_entity . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?j } . FILTER ( ?f <= 77 ) }
[]
designation for an administrative territorial entity political territorial entity
Q35 Q16 Q40
SYSTEM
Denmark, Canada, Austria
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q1048835),P530,c(Q15617994))
action atmost
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 77
[ANSWERS] have diplomatic relations with atmost 77 administrative territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?k ) AS ?f ) WHERE { ?j property:P530 ?k . ?j rdf:type ontology:Q1048835 . ?k rdf:type ontology:Q15617994 } GROUP BY ?j } . FILTER ( ?f <= 77 ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
Denmark, Canada and Austria have diplomatic relations with atmost 77 administrative territories
Denmark Canada Austria
action atmost
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 77
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?k ) AS ?f ) WHERE { ?j property:diplomatic_relation ?k . ?j rdf:type ontology:political_territorial_entity . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?j } . FILTER ( ?f <= 77 ) }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q40 Q148
P27
Q502895
USER
Which people are a native of People's Republic of China and Austria ?
AND((c(Q502895),P27,Q148), (c(Q502895),P27,Q40))
action filter_type
action intersection
action find_reverse
entity Q148
relation P27
action find_reverse
entity Q40
relation P27
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P27', 'Q148'], [{'concept': 'Q502895'}, 'P27', 'Q40']]}
SELECT DISTINCT ?t WHERE { ?t property:P27 resource:Q40 . ?t property:P27 resource:Q148 . ?t rdf:type ontology:Q502895 }
Austria People's Republic of China
action filter_type
action intersection
action find_reverse
entity People's Republic of China
relation country of citizenship
action find_reverse
entity Austria
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'country of citizenship', "People's Republic of China"], [{'concept': 'common name'}, 'country of citizenship', 'Austria']]}
SELECT DISTINCT ?t WHERE { ?t property:country_of_citizenship resource:Austria . ?t property:country_of_citizenship resource:People's_Republic_of_China . ?t rdf:type ontology:common_name }
[]
common name
Q113010 Q86798
SYSTEM
Klara Blum, Ruth Weiss
Q113010 Q86798
AND((c(Q502895),P27,Q148), (c(Q502895),P27,Q40))
action filter_type
action intersection
action find_reverse
entity Q148
relation P27
action find_reverse
entity Q40
relation P27
type Q502895
[ANSWERS] are a native of People's Republic of China and Austria
{'AND': [[{'concept': 'Q502895'}, 'P27', 'Q148'], [{'concept': 'Q502895'}, 'P27', 'Q40']]}
SELECT DISTINCT ?t WHERE { ?t property:P27 resource:Q40 . ?t property:P27 resource:Q148 . ?t rdf:type ontology:Q502895 }
Klara Blum Ruth Weiss
Klara Blum and Ruth Weiss are a native of People's Republic of China and Austria
Klara Blum Ruth Weiss
action filter_type
action intersection
action find_reverse
entity People's Republic of China
relation country of citizenship
action find_reverse
entity Austria
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'country of citizenship', "People's Republic of China"], [{'concept': 'common name'}, 'country of citizenship', 'Austria']]}
SELECT DISTINCT ?t WHERE { ?t property:country_of_citizenship resource:Austria . ?t property:country_of_citizenship resource:People's_Republic_of_China . ?t rdf:type ontology:common_name }
[]