Simple Question (Direct)
Simple Question
Q123235
P734
Q82799
USER
Who has the surname Hanna Jansen ?
(Q123235,P734,c(Q82799))
action filter_type
action find
entity Q123235
relation P734
type Q82799
['Q123235', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?r WHERE { resource:Q123235 property:P734 ?r . ?r rdf:type ontology:Q82799 }
Hanna Jansen
action filter_type
action find
entity Hanna Jansen
relation family name
type name
['Hanna Jansen', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?r WHERE { resource:Hanna_Jansen property:family_name ?r . ?r rdf:type ontology:name }
[]
name
Q2733656
SYSTEM
Jansen
Q2733656
(Q123235,P734,c(Q82799))
action filter_type
action find
entity Q123235
relation P734
type Q82799
[ANSWER] has the surname Hanna [ANSWER]
['Q123235', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?r WHERE { resource:Q123235 property:P734 ?r . ?r rdf:type ontology:Q82799 }
Jansen
Jansen has the surname Hanna Jansen
Jansen
action filter_type
action find
entity Hanna Jansen
relation family name
type name
['Hanna Jansen', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?r WHERE { resource:Hanna_Jansen property:family_name ?r . ?r rdf:type ontology:name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q123235
P937
Q15617994
USER
Which administrative territory is the work location of Hanna Jansen ?
(Q123235,P937,c(Q15617994))
action filter_type
action find
entity Q123235
relation P937
type Q15617994
['Q123235', 'P937', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { resource:Q123235 property:P937 ?k . ?k rdf:type ontology:Q15617994 }
Hanna Jansen
action filter_type
action find
entity Hanna Jansen
relation work location
type designation for an administrative territorial entity
['Hanna Jansen', 'work location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Hanna_Jansen property:work_location ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q14870
SYSTEM
Siegburg
Q14870
(Q123235,P937,c(Q15617994))
action filter_type
action find
entity Q123235
relation P937
type Q15617994
[ANSWER] is the work location of Hanna Jansen
['Q123235', 'P937', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { resource:Q123235 property:P937 ?k . ?k rdf:type ontology:Q15617994 }
Siegburg
Siegburg is the work location of Hanna Jansen
Siegburg
action filter_type
action find
entity Hanna Jansen
relation work location
type designation for an administrative territorial entity
['Hanna Jansen', 'work location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Hanna_Jansen property:work_location ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1531576
Q15617994
USER
And what about Vincentius Schmuck?
(Q1531576,P937,c(Q15617994))
action filter_type
action find
entity Q1531576
relation P937
type Q15617994
['Q1531576', 'P937', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q15617994 . resource:Q1531576 property:P937 ?q }
Vincentius Schmuck
action filter_type
action find
entity Vincentius Schmuck
relation work location
type designation for an administrative territorial entity
['Vincentius Schmuck', 'work location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Vincentius_Schmuck property:work_location ?q }
[]
designation for an administrative territorial entity
Q8738
SYSTEM
Meissen
Q8738
(Q1531576,P937,c(Q15617994))
action filter_type
action find
entity Q1531576
relation P937
type Q15617994
[ANSWER]
['Q1531576', 'P937', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q15617994 . resource:Q1531576 property:P937 ?q }
Meissen
Meissen
action filter_type
action find
entity Vincentius Schmuck
relation work location
type designation for an administrative territorial entity
['Vincentius Schmuck', 'work location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Vincentius_Schmuck property:work_location ?q }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q35
P530
Q15617994 Q1048835
USER
Which political territories have tactful political relations with less number of administrative territories than Denmark ?
(c(Q1048835),P530,c(Q15617994))
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 ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?z ) AS ?e ) WHERE { ?j property:P530 ?z . ?j rdf:type ontology:Q1048835 . ?z rdf:type ontology:Q15617994 } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?l ) WHERE { resource:Q35 property:P530 ?b . ?b rdf:type ontology:Q1048835 } } . FILTER ( ?e < ?l ) }
Denmark
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 ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?z ) AS ?e ) WHERE { ?j property:diplomatic_relation ?z . ?j rdf:type ontology:political_territorial_entity . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?l ) WHERE { resource:Denmark property:diplomatic_relation ?b . ?b rdf:type ontology:political_territorial_entity } } . FILTER ( ?e < ?l ) }
[]
designation for an administrative territorial entity political territorial entity
Q664 Q1000 Q769
SYSTEM
New Zealand, Gabon, Grenada
Q1000 Q781 Q778 Q769 Q685 Q691 Q664 Q766
(c(Q1048835),P530,c(Q15617994))
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
[ANSWERS] have tactful political relations with less number of administrative territories than Denmark
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?z ) AS ?e ) WHERE { ?j property:P530 ?z . ?j rdf:type ontology:Q1048835 . ?z rdf:type ontology:Q15617994 } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?l ) WHERE { resource:Q35 property:P530 ?b . ?b rdf:type ontology:Q1048835 } } . FILTER ( ?e < ?l ) }
Gabon Antigua and Barbuda The Bahamas Grenada Solomon Islands Papua New Guinea New Zealand Jamaica
New Zealand, Gabon and Grenada have tactful political relations with less number of administrative territories than Denmark
New Zealand Gabon Grenada
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 ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?z ) AS ?e ) WHERE { ?j property:diplomatic_relation ?z . ?j rdf:type ontology:political_territorial_entity . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?l ) WHERE { resource:Denmark property:diplomatic_relation ?b . ?b rdf:type ontology:political_territorial_entity } } . FILTER ( ?e < ?l ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q766
P530
Q15617994 Q1048835
USER
And also tell me about Jamaica?
(c(Q1048835),P530,c(Q15617994))
action less
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q766
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?v ) AS ?q ) WHERE { ?m property:P530 ?v . ?m rdf:type ontology:Q1048835 . ?v rdf:type ontology:Q15617994 } GROUP BY ?m } . FILTER ( ?q < ?f ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?f ) WHERE { resource:Q766 property:P530 ?d . ?d rdf:type ontology:Q1048835 } } }
Jamaica
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 Jamaica
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?v ) AS ?q ) WHERE { ?m property:diplomatic_relation ?v . ?m rdf:type ontology:political_territorial_entity . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?m } . FILTER ( ?q < ?f ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?f ) WHERE { resource:Jamaica property:diplomatic_relation ?d . ?d rdf:type ontology:political_territorial_entity } } }
[]
designation for an administrative territorial entity political territorial entity
Q1000 Q769 Q691
SYSTEM
Gabon, Grenada, Papua New Guinea
Q1000 Q781 Q778 Q769 Q685 Q691
(c(Q1048835),P530,c(Q15617994))
action less
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q766
relation P530
type Q1048835
[ANSWERS]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?v ) AS ?q ) WHERE { ?m property:P530 ?v . ?m rdf:type ontology:Q1048835 . ?v rdf:type ontology:Q15617994 } GROUP BY ?m } . FILTER ( ?q < ?f ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?f ) WHERE { resource:Q766 property:P530 ?d . ?d rdf:type ontology:Q1048835 } } }
Gabon Antigua and Barbuda The Bahamas Grenada Solomon Islands Papua New Guinea
Gabon Grenada Papua New Guinea
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 Jamaica
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?v ) AS ?q ) WHERE { ?m property:diplomatic_relation ?v . ?m rdf:type ontology:political_territorial_entity . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?m } . FILTER ( ?q < ?f ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?f ) WHERE { resource:Jamaica property:diplomatic_relation ?d . ?d rdf:type ontology:political_territorial_entity } } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q1000 Q769 Q691
P17
Q1048835
USER
Which political territories do those ones belong to ?
(Q1000,P17,c(Q1048835)) (Q769,P17,c(Q1048835)) (Q691,P17,c(Q1048835))
action filter_type
action find
entity prev_answer
relation P17
type Q1048835
['Q1000', 'P17', {'concept': 'Q1048835'}] ['Q769', 'P17', {'concept': 'Q1048835'}] ['Q691', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?v WHERE { VALUES ( ?j ) { ( resource:Q1000 ) ( resource:Q781 ) ( resource:Q778 ) } . ?v rdf:type ontology:Q1048835 . ?j property:P17 ?v }
Gabon Grenada Papua New Guinea
action filter_type
action find
entity prev_answer
relation country
type political territorial entity
['Gabon', 'country', {'concept': 'political territorial entity'}] ['Grenada', 'country', {'concept': 'political territorial entity'}] ['Papua New Guinea', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?v WHERE { VALUES ( ?j ) { ( resource:Gabon ) ( resource:Antigua_and_Barbuda ) ( resource:The_Bahamas ) } . ?v rdf:type ontology:political_territorial_entity . ?j property:country ?v }
[]
political territorial entity
Q1000 Q769 Q691
SYSTEM
Gabon, Grenada, Papua New Guinea
Q1000 Q769 Q691
(Q1000,P17,c(Q1048835)) (Q769,P17,c(Q1048835)) (Q691,P17,c(Q1048835))
action filter_type
action find
entity prev_answer
relation P17
type Q1048835
Those ones belong to [ANSWERS]
['Q1000', 'P17', {'concept': 'Q1048835'}] ['Q769', 'P17', {'concept': 'Q1048835'}] ['Q691', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?v WHERE { VALUES ( ?j ) { ( resource:Q1000 ) ( resource:Q781 ) ( resource:Q778 ) } . ?v rdf:type ontology:Q1048835 . ?j property:P17 ?v }
Gabon Grenada Papua New Guinea
Those ones belong to Gabon, Grenada and Papua New Guinea
Gabon Grenada Papua New Guinea
action filter_type
action find
entity prev_answer
relation country
type political territorial entity
['Gabon', 'country', {'concept': 'political territorial entity'}] ['Grenada', 'country', {'concept': 'political territorial entity'}] ['Papua New Guinea', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?v WHERE { VALUES ( ?j ) { ( resource:Gabon ) ( resource:Antigua_and_Barbuda ) ( resource:The_Bahamas ) } . ?v rdf:type ontology:political_territorial_entity . ?j property:country ?v }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q1000 Q769 Q691
P1001
Q14660
USER
Which flags apply to jurisdiction over Gabon, Grenada and Papua New Guinea ?
(c(Q14660),P1001,Q1000) (c(Q14660),P1001,Q769) (c(Q14660),P1001,Q691)
action union
action filter_type
action find_reverse
entity Q1000
relation P1001
type Q14660
action filter_type
action find_reverse
entity Q769
relation P1001
type Q14660
action filter_type
action find_reverse
entity Q691
relation P1001
type Q14660
[{'concept': 'Q14660'}, 'P1001', 'Q1000'] [{'concept': 'Q14660'}, 'P1001', 'Q769'] [{'concept': 'Q14660'}, 'P1001', 'Q691']
SELECT DISTINCT ?f WHERE { { ?f property:P1001 resource:Q1000 . ?f rdf:type ontology:Q14660 } UNION { ?f property:P1001 resource:Q769 . ?f rdf:type ontology:Q14660 } }
Gabon Grenada Papua New Guinea
action union
action filter_type
action find_reverse
entity Gabon
relation applies to jurisdiction
type flag
action filter_type
action find_reverse
entity Grenada
relation applies to jurisdiction
type flag
action filter_type
action find_reverse
entity Papua New Guinea
relation applies to jurisdiction
type flag
[{'concept': 'flag'}, 'applies to jurisdiction', 'Gabon'] [{'concept': 'flag'}, 'applies to jurisdiction', 'Grenada'] [{'concept': 'flag'}, 'applies to jurisdiction', 'Papua New Guinea']
SELECT DISTINCT ?f WHERE { { ?f property:applies_to_jurisdiction resource:Gabon . ?f rdf:type ontology:flag } UNION { ?f property:applies_to_jurisdiction resource:Grenada . ?f rdf:type ontology:flag } }
[]
flag
Q101769 Q103414 Q185271
SYSTEM
Flag of Gabon, Flag of Grenada, Flag of Papua New Guinea
Q101769 Q103414 Q185271
(c(Q14660),P1001,Q1000) (c(Q14660),P1001,Q769) (c(Q14660),P1001,Q691)
action union
action filter_type
action find_reverse
entity Q1000
relation P1001
type Q14660
action filter_type
action find_reverse
entity Q769
relation P1001
type Q14660
action filter_type
action find_reverse
entity Q691
relation P1001
type Q14660
And [ANSWERS] apply to jurisdiction over Gabon, Grenada and Papua New Guinea
[{'concept': 'Q14660'}, 'P1001', 'Q1000'] [{'concept': 'Q14660'}, 'P1001', 'Q769'] [{'concept': 'Q14660'}, 'P1001', 'Q691']
SELECT DISTINCT ?f WHERE { { ?f property:P1001 resource:Q1000 . ?f rdf:type ontology:Q14660 } UNION { ?f property:P1001 resource:Q769 . ?f rdf:type ontology:Q14660 } }
Flag of Gabon Flag of Grenada Flag of Papua New Guinea
And Flag of Gabon, Flag of Grenada and Flag of Papua New Guinea apply to jurisdiction over Gabon, Grenada and Papua New Guinea
Flag of Gabon Flag of Grenada Flag of Papua New Guinea
action union
action filter_type
action find_reverse
entity Gabon
relation applies to jurisdiction
type flag
action filter_type
action find_reverse
entity Grenada
relation applies to jurisdiction
type flag
action filter_type
action find_reverse
entity Papua New Guinea
relation applies to jurisdiction
type flag
[{'concept': 'flag'}, 'applies to jurisdiction', 'Gabon'] [{'concept': 'flag'}, 'applies to jurisdiction', 'Grenada'] [{'concept': 'flag'}, 'applies to jurisdiction', 'Papua New Guinea']
SELECT DISTINCT ?f WHERE { { ?f property:applies_to_jurisdiction resource:Gabon . ?f rdf:type ontology:flag } UNION { ?f property:applies_to_jurisdiction resource:Grenada . ?f rdf:type ontology:flag } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q101769
P462
Q1075
USER
What colors are that flag associated with ?
(Q101769,P462,c(Q1075))
action filter_type
action find
entity Q101769
relation P462
type Q1075
['Q101769', 'P462', {'concept': 'Q1075'}]
SELECT DISTINCT ?j WHERE { resource:Q101769 property:P462 ?j . ?j rdf:type ontology:Q1075 }
Flag of Gabon
action filter_type
action find
entity Flag of Gabon
relation color
type color
['Flag of Gabon', 'color', {'concept': 'color'}]
SELECT DISTINCT ?j WHERE { resource:Flag_of_Gabon property:color ?j . ?j rdf:type ontology:color }
[]
color
Clarification for simple ques.
Q101769
SYSTEM
Did you mean Flag of Gabon ?
Q101769 Q103414 Q185271
(Q101769,P462,c(Q1075)) (Q103414,P462,c(Q1075)) (Q185271,P462,c(Q1075))
[ANSWER]
['Q101769', 'P462', {'concept': 'Q1075'}] ['Q103414', 'P462', {'concept': 'Q1075'}] ['Q185271', 'P462', {'concept': 'Q1075'}]
SELECT DISTINCT ?j WHERE { resource:Q101769 property:P462 ?j . ?j rdf:type ontology:Q1075 }
Flag of Gabon Flag of Grenada Flag of Papua New Guinea
Did you mean Flag of Gabon ?
Flag of Gabon
['Flag of Gabon', 'color', {'concept': 'color'}] ['Flag of Grenada', 'color', {'concept': 'color'}] ['Flag of Papua New Guinea', 'color', {'concept': 'color'}]
SELECT DISTINCT ?j WHERE { resource:Flag_of_Gabon property:color ?j . ?j rdf:type ontology:color }
[]
Simple Question (Coreferenced)
USER
Yes
(Q101769,P462,c(Q1075))
['Q101769', 'P462', {'concept': 'Q1075'}]
['Flag of Gabon', 'color', {'concept': 'color'}]
[]
Q1088 Q3133
SYSTEM
blue, green
Q1088 Q3133
(Q101769,P462,c(Q1075))
action filter_type
action find
entity Q101769
relation P462
type Q1075
That flag are associated with [ANSWERS]
['Q101769', 'P462', {'concept': 'Q1075'}]
SELECT DISTINCT ?j WHERE { resource:Q101769 property:P462 ?j . ?j rdf:type ontology:Q1075 }
blue green
That flag are associated with blue and green
blue green
action filter_type
action find
entity Flag of Gabon
relation color
type color
['Flag of Gabon', 'color', {'concept': 'color'}]
SELECT DISTINCT ?j WHERE { resource:Flag_of_Gabon property:color ?j . ?j rdf:type ontology:color }
[]