Simple Question (Direct)
Simple Question
Q2109546
P21
Q290
USER
What is the sex of Li Jong-kap ?
(Q2109546,P21,c(Q290))
action filter_type
action find
entity Q2109546
relation P21
type Q290
['Q2109546', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q290 . resource:Q2109546 property:P21 ?r }
Li Jong-kap
action filter_type
action find
entity Li Jong-kap
relation gender
type sex
['Li Jong-kap', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:sex . resource:Li_Jong-kap property:gender ?r }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q2109546,P21,c(Q290))
action filter_type
action find
entity Q2109546
relation P21
type Q290
The sex of Li Jong-kap is a [ANSWER]
['Q2109546', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q290 . resource:Q2109546 property:P21 ?r }
male
The sex of Li Jong-kap is a male
male
action filter_type
action find
entity Li Jong-kap
relation gender
type sex
['Li Jong-kap', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:sex . resource:Li_Jong-kap property:gender ?r }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2109546
P19
Q15617994
USER
Where was Li Jong-kap born ?
(Q2109546,P19,c(Q15617994))
action filter_type
action find
entity Q2109546
relation P19
type Q15617994
['Q2109546', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q15617994 . resource:Q2109546 property:P19 ?g }
Li Jong-kap
action filter_type
action find
entity Li Jong-kap
relation place of birth
type designation for an administrative territorial entity
['Li Jong-kap', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Li_Jong-kap property:place_of_birth ?g }
[]
designation for an administrative territorial entity
Q884
SYSTEM
South Korea
Q884
(Q2109546,P19,c(Q15617994))
action filter_type
action find
entity Q2109546
relation P19
type Q15617994
Li Jong-kap was born in [ANSWER]
['Q2109546', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q15617994 . resource:Q2109546 property:P19 ?g }
South Korea
Li Jong-kap was born in South Korea
South Korea
action filter_type
action find
entity Li Jong-kap
relation place of birth
type designation for an administrative territorial entity
['Li Jong-kap', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Li_Jong-kap property:place_of_birth ?g }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2109546
P27
Q15617994
USER
Which administrative territory is the native country of Li Jong-kap ?
(Q2109546,P27,c(Q15617994))
action filter_type
action find
entity Q2109546
relation P27
type Q15617994
['Q2109546', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { resource:Q2109546 property:P27 ?a . ?a rdf:type ontology:Q15617994 }
Li Jong-kap
action filter_type
action find
entity Li Jong-kap
relation country of citizenship
type designation for an administrative territorial entity
['Li Jong-kap', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Li_Jong-kap property:country_of_citizenship ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q884
SYSTEM
South Korea
Q884
(Q2109546,P27,c(Q15617994))
action filter_type
action find
entity Q2109546
relation P27
type Q15617994
[ANSWER] is the native country of Li Jong-kap
['Q2109546', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { resource:Q2109546 property:P27 ?a . ?a rdf:type ontology:Q15617994 }
South Korea
South Korea is the native country of Li Jong-kap
South Korea
action filter_type
action find
entity Li Jong-kap
relation country of citizenship
type designation for an administrative territorial entity
['Li Jong-kap', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Li_Jong-kap property:country_of_citizenship ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q9028569
Q15617994
USER
And also tell me about Marcel·lí Perelló i Valls?
(Q9028569,P27,c(Q15617994))
action filter_type
action find
entity Q9028569
relation P27
type Q15617994
['Q9028569', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { resource:Q9028569 property:P27 ?v . ?v rdf:type ontology:Q15617994 }
Marcel·lí Perelló i Valls
action filter_type
action find
entity Marcel·lí Perelló i Valls
relation country of citizenship
type designation for an administrative territorial entity
['Marcel·lí Perelló i Valls', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Marcel·lí_Perelló_i_Valls property:country_of_citizenship ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q96
SYSTEM
Mexico
Q96
(Q9028569,P27,c(Q15617994))
action filter_type
action find
entity Q9028569
relation P27
type Q15617994
[ANSWER]
['Q9028569', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { resource:Q9028569 property:P27 ?v . ?v rdf:type ontology:Q15617994 }
Mexico
Mexico
action filter_type
action find
entity Marcel·lí Perelló i Valls
relation country of citizenship
type designation for an administrative territorial entity
['Marcel·lí Perelló i Valls', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Marcel·lí_Perelló_i_Valls property:country_of_citizenship ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q96
P361
Q2221906
USER
What is that administrative territory a part of ?
(Q96,P361,c(Q2221906))
action filter_type
action find
entity Q96
relation P361
type Q2221906
['Q96', 'P361', {'concept': 'Q2221906'}]
SELECT DISTINCT ?n WHERE { resource:Q96 property:P361 ?n . ?n rdf:type ontology:Q2221906 }
Mexico
action filter_type
action find
entity Mexico
relation part of
type geographic location
['Mexico', 'part of', {'concept': 'geographic location'}]
SELECT DISTINCT ?n WHERE { resource:Mexico property:part_of ?n . ?n rdf:type ontology:geographic_location }
[]
geographic location
Q12585
SYSTEM
Latin America
Q12585
(Q96,P361,c(Q2221906))
action filter_type
action find
entity Q96
relation P361
type Q2221906
That administrative territory a part of is in [ANSWER]
['Q96', 'P361', {'concept': 'Q2221906'}]
SELECT DISTINCT ?n WHERE { resource:Q96 property:P361 ?n . ?n rdf:type ontology:Q2221906 }
Latin America
That administrative territory a part of is in Latin America
Latin America
action filter_type
action find
entity Mexico
relation part of
type geographic location
['Mexico', 'part of', {'concept': 'geographic location'}]
SELECT DISTINCT ?n WHERE { resource:Mexico property:part_of ?n . ?n rdf:type ontology:geographic_location }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q7166
P706
Q1048835 Q2221906
USER
Which political territories are the location where approximately the same number of geographic locations are located as Heilbronn ?
(c(Q2221906),P706,c(Q1048835))
action approx
action find_reverse_tuple_counts
relation P706
type Q1048835
type Q2221906
action count
action filter_type
action find
entity Q7166
relation P706
type Q1048835
[{'concept': 'Q2221906'}, 'P706', {'concept': 'Q1048835'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?i ) WHERE { resource:Q7166 property:P706 ?c . ?c rdf:type ontology:Q1048835 } } . FILTER ( ?w = ?i ) . { SELECT DISTINCT ?y ( COUNT ( ?p ) AS ?w ) WHERE { ?p property:P706 ?y . ?y rdf:type ontology:Q1048835 . ?p rdf:type ontology:Q2221906 } GROUP BY ?y } }
Heilbronn
action approx
action find_reverse_tuple_counts
relation located on terrain feature
type political territorial entity
type geographic location
action count
action filter_type
action find
entity Heilbronn
relation located on terrain feature
type political territorial entity
[{'concept': 'geographic location'}, 'located on terrain feature', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?i ) WHERE { resource:Heilbronn property:located_on_terrain_feature ?c . ?c rdf:type ontology:political_territorial_entity } } . FILTER ( ?w = ?i ) . { SELECT DISTINCT ?y ( COUNT ( ?p ) AS ?w ) WHERE { ?p property:located_on_terrain_feature ?y . ?y rdf:type ontology:political_territorial_entity . ?p rdf:type ontology:geographic_location } GROUP BY ?y } }
[]
political territorial entity geographic location
Q35 Q40 Q5705
SYSTEM
Denmark, Austria, Catalonia
Q2012050 Q1747689 Q188399 Q785 Q47134 Q13769 Q202023 Q9676 Q10557 Q5705 Q15434 Q7166 Q5783 Q168159 Q35 Q80967 Q11266977 Q109128 Q190930 Q100166 Q234 Q40 Q3908 Q23635 Q25228
(c(Q2221906),P706,c(Q1048835))
action approx
action find_reverse_tuple_counts
relation P706
type Q1048835
type Q2221906
action count
action filter_type
action find
entity Q7166
relation P706
type Q1048835
[ANSWERS] are the location where approximately the same number of geographic locations are located as Heilbronn
[{'concept': 'Q2221906'}, 'P706', {'concept': 'Q1048835'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?i ) WHERE { resource:Q7166 property:P706 ?c . ?c rdf:type ontology:Q1048835 } } . FILTER ( ?w = ?i ) . { SELECT DISTINCT ?y ( COUNT ( ?p ) AS ?w ) WHERE { ?p property:P706 ?y . ?y rdf:type ontology:Q1048835 . ?p rdf:type ontology:Q2221906 } GROUP BY ?y } }
Donetsk Oblast Ancient Rome Central Bohemian Region Jersey Shetland Camiguin Herm Isle of Man Swabia Catalonia Montseny Heilbronn Andalusia Anglesey Denmark Outer Hebrides Epirus Gwynedd Vysočina Region Orkney Islands Flemish Region Austria Galicia Bermuda Anguilla
Denmark, Austria and Catalonia are the location where approximately the same number of geographic locations are located as Heilbronn
Denmark Austria Catalonia
action approx
action find_reverse_tuple_counts
relation located on terrain feature
type political territorial entity
type geographic location
action count
action filter_type
action find
entity Heilbronn
relation located on terrain feature
type political territorial entity
[{'concept': 'geographic location'}, 'located on terrain feature', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?i ) WHERE { resource:Heilbronn property:located_on_terrain_feature ?c . ?c rdf:type ontology:political_territorial_entity } } . FILTER ( ?w = ?i ) . { SELECT DISTINCT ?y ( COUNT ( ?p ) AS ?w ) WHERE { ?p property:located_on_terrain_feature ?y . ?y rdf:type ontology:political_territorial_entity . ?p rdf:type ontology:geographic_location } GROUP BY ?y } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q5705
P706
Q1048835 Q2221906
USER
And what about Catalonia?
(c(Q2221906),P706,c(Q1048835))
action approx
action find_reverse_tuple_counts
relation P706
type Q1048835
type Q2221906
action count
action filter_type
action find
entity Q5705
relation P706
type Q1048835
[{'concept': 'Q2221906'}, 'P706', {'concept': 'Q1048835'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?c ) WHERE { ?y rdf:type ontology:Q1048835 . resource:Q5705 property:P706 ?y } } . FILTER ( ?g = ?c ) . { SELECT DISTINCT ?x ( COUNT ( ?a ) AS ?g ) WHERE { ?a property:P706 ?x . ?x rdf:type ontology:Q1048835 . ?a rdf:type ontology:Q2221906 } GROUP BY ?x } }
Catalonia
action approx
action find_reverse_tuple_counts
relation located on terrain feature
type political territorial entity
type geographic location
action count
action filter_type
action find
entity Catalonia
relation located on terrain feature
type political territorial entity
[{'concept': 'geographic location'}, 'located on terrain feature', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?c ) WHERE { ?y rdf:type ontology:political_territorial_entity . resource:Catalonia property:located_on_terrain_feature ?y } } . FILTER ( ?g = ?c ) . { SELECT DISTINCT ?x ( COUNT ( ?a ) AS ?g ) WHERE { ?a property:located_on_terrain_feature ?x . ?x rdf:type ontology:political_territorial_entity . ?a rdf:type ontology:geographic_location } GROUP BY ?x } }
[]
political territorial entity geographic location
Q35 Q40 Q5705
SYSTEM
Denmark, Austria, Catalonia
Q2012050 Q1747689 Q188399 Q785 Q47134 Q13769 Q202023 Q9676 Q10557 Q5705 Q15434 Q7166 Q5783 Q168159 Q35 Q80967 Q11266977 Q109128 Q190930 Q100166 Q234 Q40 Q3908 Q23635 Q25228
(c(Q2221906),P706,c(Q1048835))
action approx
action find_reverse_tuple_counts
relation P706
type Q1048835
type Q2221906
action count
action filter_type
action find
entity Q5705
relation P706
type Q1048835
[ANSWERS]
[{'concept': 'Q2221906'}, 'P706', {'concept': 'Q1048835'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?c ) WHERE { ?y rdf:type ontology:Q1048835 . resource:Q5705 property:P706 ?y } } . FILTER ( ?g = ?c ) . { SELECT DISTINCT ?x ( COUNT ( ?a ) AS ?g ) WHERE { ?a property:P706 ?x . ?x rdf:type ontology:Q1048835 . ?a rdf:type ontology:Q2221906 } GROUP BY ?x } }
Donetsk Oblast Ancient Rome Central Bohemian Region Jersey Shetland Camiguin Herm Isle of Man Swabia Catalonia Montseny Heilbronn Andalusia Anglesey Denmark Outer Hebrides Epirus Gwynedd Vysočina Region Orkney Islands Flemish Region Austria Galicia Bermuda Anguilla
Denmark Austria Catalonia
action approx
action find_reverse_tuple_counts
relation located on terrain feature
type political territorial entity
type geographic location
action count
action filter_type
action find
entity Catalonia
relation located on terrain feature
type political territorial entity
[{'concept': 'geographic location'}, 'located on terrain feature', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?c ) WHERE { ?y rdf:type ontology:political_territorial_entity . resource:Catalonia property:located_on_terrain_feature ?y } } . FILTER ( ?g = ?c ) . { SELECT DISTINCT ?x ( COUNT ( ?a ) AS ?g ) WHERE { ?a property:located_on_terrain_feature ?x . ?x rdf:type ontology:political_territorial_entity . ?a rdf:type ontology:geographic_location } GROUP BY ?x } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q40
P740
Q43229
USER
Which organization originated at that political territory ?
(c(Q43229),P740,Q40)
action filter_type
action find_reverse
entity Q40
relation P740
type Q43229
[{'concept': 'Q43229'}, 'P740', 'Q40']
SELECT DISTINCT ?o WHERE { ?o property:P740 resource:Q40 . ?o rdf:type ontology:Q43229 }
Austria
action filter_type
action find_reverse
entity Austria
relation location of formation
type organization
[{'concept': 'organization'}, 'location of formation', 'Austria']
SELECT DISTINCT ?o WHERE { ?o property:location_of_formation resource:Austria . ?o rdf:type ontology:organization }
[]
organization
Clarification for simple ques.
Q40
SYSTEM
Did you mean Austria ?
Q35 Q40 Q5705
(c(Q43229),P740,Q35) (c(Q43229),P740,Q40) (c(Q43229),P740,Q5705)
[ANSWER]
[{'concept': 'Q43229'}, 'P740', 'Q35'] [{'concept': 'Q43229'}, 'P740', 'Q40'] [{'concept': 'Q43229'}, 'P740', 'Q5705']
SELECT DISTINCT ?o WHERE { ?o property:P740 resource:Q40 . ?o rdf:type ontology:Q43229 }
Denmark Austria Catalonia
Did you mean Austria ?
Austria
[{'concept': 'organization'}, 'location of formation', 'Denmark'] [{'concept': 'organization'}, 'location of formation', 'Austria'] [{'concept': 'organization'}, 'location of formation', 'Catalonia']
SELECT DISTINCT ?o WHERE { ?o property:location_of_formation resource:Austria . ?o rdf:type ontology:organization }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q43229),P740,Q40)
[{'concept': 'Q43229'}, 'P740', 'Q40']
[{'concept': 'organization'}, 'location of formation', 'Austria']
[]
Q117507
SYSTEM
Atomic Skis
Q117507
(c(Q43229),P740,Q40)
action filter_type
action find_reverse
entity Q40
relation P740
type Q43229
[ANSWER] originated at that political territory
[{'concept': 'Q43229'}, 'P740', 'Q40']
SELECT DISTINCT ?o WHERE { ?o property:P740 resource:Q40 . ?o rdf:type ontology:Q43229 }
Atomic Skis
Atomic Skis originated at that political territory
Atomic Skis
action filter_type
action find_reverse
entity Austria
relation location of formation
type organization
[{'concept': 'organization'}, 'location of formation', 'Austria']
SELECT DISTINCT ?o WHERE { ?o property:location_of_formation resource:Austria . ?o rdf:type ontology:organization }
[]