Simple Question (Direct)
Simple Question
Q7811631
P54
Q12973014
USER
Which sports team is Tobias Hager a member of ?
(Q7811631,P54,c(Q12973014))
action filter_type
action find
entity Q7811631
relation P54
type Q12973014
['Q7811631', 'P54', {'concept': 'Q12973014'}]
SELECT DISTINCT ?z WHERE { resource:Q7811631 property:P54 ?z . ?z rdf:type ontology:Q12973014 }
Tobias Hager
action filter_type
action find
entity Tobias Hager
relation member of sports team
type sports team
['Tobias Hager', 'member of sports team', {'concept': 'sports team'}]
SELECT DISTINCT ?z WHERE { resource:Tobias_Hager property:member_of_sports_team ?z . ?z rdf:type ontology:sports_team }
[]
sports team
Q314851
SYSTEM
Germany national under-21 football team
Q314851
(Q7811631,P54,c(Q12973014))
action filter_type
action find
entity Q7811631
relation P54
type Q12973014
The [ANSWER] is Tobias Hager a member of
['Q7811631', 'P54', {'concept': 'Q12973014'}]
SELECT DISTINCT ?z WHERE { resource:Q7811631 property:P54 ?z . ?z rdf:type ontology:Q12973014 }
Germany national under-21 football team
The Germany national under-21 football team is Tobias Hager a member of
Germany national under-21 football team
action filter_type
action find
entity Tobias Hager
relation member of sports team
type sports team
['Tobias Hager', 'member of sports team', {'concept': 'sports team'}]
SELECT DISTINCT ?z WHERE { resource:Tobias_Hager property:member_of_sports_team ?z . ?z rdf:type ontology:sports_team }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q314851
P1532
Q1048835
USER
Which political territory did that sports team play for ?
(Q314851,P1532,c(Q1048835))
action filter_type
action find
entity Q314851
relation P1532
type Q1048835
['Q314851', 'P1532', {'concept': 'Q1048835'}]
SELECT DISTINCT ?k WHERE { resource:Q314851 property:P1532 ?k . ?k rdf:type ontology:Q1048835 }
Germany national under-21 football team
action filter_type
action find
entity Germany national under-21 football team
relation country for sport
type political territorial entity
['Germany national under-21 football team', 'country for sport', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Germany_national_under-21_football_team property:country_for_sport ?k . ?k rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q314851,P1532,c(Q1048835))
action filter_type
action find
entity Q314851
relation P1532
type Q1048835
Sports team played in [ANSWER] that
['Q314851', 'P1532', {'concept': 'Q1048835'}]
SELECT DISTINCT ?k WHERE { resource:Q314851 property:P1532 ?k . ?k rdf:type ontology:Q1048835 }
Germany
Sports team played in Germany that
Germany
action filter_type
action find
entity Germany national under-21 football team
relation country for sport
type political territorial entity
['Germany national under-21 football team', 'country for sport', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Germany_national_under-21_football_team property:country_for_sport ?k . ?k rdf:type ontology:political_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q183 Q98790
P27
Q502895
USER
Is Joseph Lefftz a citizen of that political territory ?
(Q98790,P27,Q183)
action is_in
entity Q183
action find
entity Q98790
relation P27
['Q98790', 'P27', 'Q183']
ASK WHERE { resource:Q98790 property:P27 resource:Q183 }
Germany Joseph Lefftz
action is_in
entity Germany
action find
entity Joseph Lefftz
relation country of citizenship
['Joseph Lefftz', 'country of citizenship', 'Germany']
ASK WHERE { resource:Joseph_Lefftz property:country_of_citizenship resource:Germany }
[]
common name
SYSTEM
YES
(Q98790,P27,Q183)
action is_in
entity Q183
action find
entity Q98790
relation P27
[ANSWER]
['Q98790', 'P27', 'Q183']
ASK WHERE { resource:Q98790 property:P27 resource:Q183 }
Yes
action is_in
entity Germany
action find
entity Joseph Lefftz
relation country of citizenship
['Joseph Lefftz', 'country of citizenship', 'Germany']
ASK WHERE { resource:Joseph_Lefftz property:country_of_citizenship resource:Germany }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q7914010 Q98790
P27
Q1048835
USER
Which political territories are the countries of citizenship of Joseph Lefftz or Vance Amory ?
OR((Q98790,P27,c(Q1048835)), (Q7914010,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q98790
relation P27
action find
entity Q7914010
relation P27
type Q1048835
{'OR': [['Q98790', 'P27', {'concept': 'Q1048835'}], ['Q7914010', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?i WHERE { { ?y property:P27 ?i . VALUES ( ?y ) { ( resource:Q98790 ) ( resource:Q7914010 ) } } . ?i rdf:type ontology:Q1048835 }
Vance Amory Joseph Lefftz
action filter_type
action union
action find
entity Joseph Lefftz
relation country of citizenship
action find
entity Vance Amory
relation country of citizenship
type political territorial entity
{'OR': [['Joseph Lefftz', 'country of citizenship', {'concept': 'political territorial entity'}], ['Vance Amory', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?i WHERE { { ?y property:country_of_citizenship ?i . VALUES ( ?y ) { ( resource:Joseph_Lefftz ) ( resource:Vance_Amory ) } } . ?i rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q763 Q183
SYSTEM
Saint Kitts and Nevis, Germany
Q763 Q183
OR((Q98790,P27,c(Q1048835)), (Q7914010,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q98790
relation P27
action find
entity Q7914010
relation P27
type Q1048835
[ANSWERS] are the countries of citizenship of Joseph Lefftz or Vance Amory
{'OR': [['Q98790', 'P27', {'concept': 'Q1048835'}], ['Q7914010', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?i WHERE { { ?y property:P27 ?i . VALUES ( ?y ) { ( resource:Q98790 ) ( resource:Q7914010 ) } } . ?i rdf:type ontology:Q1048835 }
Saint Kitts and Nevis Germany
Saint Kitts and Nevis and Germany are the countries of citizenship of Joseph Lefftz or Vance Amory
Saint Kitts and Nevis Germany
action filter_type
action union
action find
entity Joseph Lefftz
relation country of citizenship
action find
entity Vance Amory
relation country of citizenship
type political territorial entity
{'OR': [['Joseph Lefftz', 'country of citizenship', {'concept': 'political territorial entity'}], ['Vance Amory', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?i WHERE { { ?y property:country_of_citizenship ?i . VALUES ( ?y ) { ( resource:Joseph_Lefftz ) ( resource:Vance_Amory ) } } . ?i rdf:type ontology:political_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q763 Q183
P163
Q14660
USER
Which flags are associated with Saint Kitts and Nevis and Germany ?
(Q763,P163,c(Q14660)) (Q183,P163,c(Q14660))
action union
action filter_type
action find
entity Q763
relation P163
type Q14660
action filter_type
action find
entity Q183
relation P163
type Q14660
['Q763', 'P163', {'concept': 'Q14660'}] ['Q183', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?h WHERE { ?j property:P163 ?h . VALUES ( ?j ) { ( resource:Q763 ) ( resource:Q183 ) } }
Saint Kitts and Nevis Germany
action union
action filter_type
action find
entity Saint Kitts and Nevis
relation flag
type flag
action filter_type
action find
entity Germany
relation flag
type flag
['Saint Kitts and Nevis', 'flag', {'concept': 'flag'}] ['Germany', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?h WHERE { ?j property:flag ?h . VALUES ( ?j ) { ( resource:Saint_Kitts_and_Nevis ) ( resource:Germany ) } }
[]
flag
Q181120 Q48160
SYSTEM
Flag of Saint Kitts and Nevis, flag of Germany
Q181120 Q48160
(Q763,P163,c(Q14660)) (Q183,P163,c(Q14660))
action union
action filter_type
action find
entity Q763
relation P163
type Q14660
action filter_type
action find
entity Q183
relation P163
type Q14660
And [ANSWERS] are associated with Saint Kitts and Nevis and Germany
['Q763', 'P163', {'concept': 'Q14660'}] ['Q183', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?h WHERE { ?j property:P163 ?h . VALUES ( ?j ) { ( resource:Q763 ) ( resource:Q183 ) } }
Flag of Saint Kitts and Nevis flag of Germany
And Flag of Saint Kitts and Nevis and flag of Germany are associated with Saint Kitts and Nevis and Germany
Flag of Saint Kitts and Nevis flag of Germany
action union
action filter_type
action find
entity Saint Kitts and Nevis
relation flag
type flag
action filter_type
action find
entity Germany
relation flag
type flag
['Saint Kitts and Nevis', 'flag', {'concept': 'flag'}] ['Germany', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?h WHERE { ?j property:flag ?h . VALUES ( ?j ) { ( resource:Saint_Kitts_and_Nevis ) ( resource:Germany ) } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q181120 Q48160
P462
Q1075
USER
Which colors are Flag of Saint Kitts and Nevis and flag of Germany associated with ?
(Q181120,P462,c(Q1075)) (Q48160,P462,c(Q1075))
action union
action filter_type
action find
entity Q181120
relation P462
type Q1075
action filter_type
action find
entity Q48160
relation P462
type Q1075
['Q181120', 'P462', {'concept': 'Q1075'}] ['Q48160', 'P462', {'concept': 'Q1075'}]
SELECT DISTINCT ?c WHERE { { resource:Q181120 property:P462 ?c . ?c rdf:type ontology:Q1075 } UNION { resource:Q48160 property:P462 ?c . ?c rdf:type ontology:Q1075 } }
Flag of Saint Kitts and Nevis flag of Germany
action union
action filter_type
action find
entity Flag of Saint Kitts and Nevis
relation color
type color
action filter_type
action find
entity flag of Germany
relation color
type color
['Flag of Saint Kitts and Nevis', 'color', {'concept': 'color'}] ['flag of Germany', 'color', {'concept': 'color'}]
SELECT DISTINCT ?c WHERE { { resource:Flag_of_Saint_Kitts_and_Nevis property:color ?c . ?c rdf:type ontology:color } UNION { resource:flag_of_Germany property:color ?c . ?c rdf:type ontology:color } }
[]
color
Q943 Q3142 Q23445
SYSTEM
yellow, red, black
Q943 Q3142 Q23445 Q3133 Q3142 Q23445
(Q181120,P462,c(Q1075)) (Q48160,P462,c(Q1075))
action union
action filter_type
action find
entity Q181120
relation P462
type Q1075
action filter_type
action find
entity Q48160
relation P462
type Q1075
Flag of Saint Kitts and Nevis and flag of Germany are associated with [ANSWERS]
['Q181120', 'P462', {'concept': 'Q1075'}] ['Q48160', 'P462', {'concept': 'Q1075'}]
SELECT DISTINCT ?c WHERE { { resource:Q181120 property:P462 ?c . ?c rdf:type ontology:Q1075 } UNION { resource:Q48160 property:P462 ?c . ?c rdf:type ontology:Q1075 } }
yellow red black green red black
Flag of Saint Kitts and Nevis and flag of Germany are associated with yellow, red and black
yellow red black
action union
action filter_type
action find
entity Flag of Saint Kitts and Nevis
relation color
type color
action filter_type
action find
entity flag of Germany
relation color
type color
['Flag of Saint Kitts and Nevis', 'color', {'concept': 'color'}] ['flag of Germany', 'color', {'concept': 'color'}]
SELECT DISTINCT ?c WHERE { { resource:Flag_of_Saint_Kitts_and_Nevis property:color ?c . ?c rdf:type ontology:color } UNION { resource:flag_of_Germany property:color ?c . ?c rdf:type ontology:color } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q943
P138
Q5151
USER
Which month has that color as its toponym ?
(c(Q5151),P138,Q943)
action filter_type
action find_reverse
entity Q943
relation P138
type Q5151
[{'concept': 'Q5151'}, 'P138', 'Q943']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q5151 . ?s property:P138 resource:Q943 }
yellow
action filter_type
action find_reverse
entity yellow
relation named after
type month
[{'concept': 'month'}, 'named after', 'yellow']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:month . ?s property:named_after resource:yellow }
[]
month
Clarification for simple ques.
Q3142
SYSTEM
Did you mean red ?
Q943 Q3142 Q23445
(c(Q5151),P138,Q943) (c(Q5151),P138,Q3142) (c(Q5151),P138,Q23445)
[ANSWER]
[{'concept': 'Q5151'}, 'P138', 'Q943'] [{'concept': 'Q5151'}, 'P138', 'Q3142'] [{'concept': 'Q5151'}, 'P138', 'Q23445']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q5151 . ?s property:P138 resource:Q943 }
yellow red black
Did you mean red ?
red
[{'concept': 'month'}, 'named after', 'yellow'] [{'concept': 'month'}, 'named after', 'red'] [{'concept': 'month'}, 'named after', 'black']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:month . ?s property:named_after resource:yellow }
[]
Simple Question (Coreferenced)
USER
No, I meant yellow. Could you tell me the answer for that?
(c(Q5151),P138,Q943)
Q943
[{'concept': 'Q5151'}, 'P138', 'Q943']
[{'concept': 'month'}, 'named after', 'yellow']
[]
Q124
SYSTEM
October
Q124
(c(Q5151),P138,Q943)
action filter_type
action find_reverse
entity Q943
relation P138
type Q5151
The [ANSWER] has that color as its toponym
[{'concept': 'Q5151'}, 'P138', 'Q943']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q5151 . ?s property:P138 resource:Q943 }
October
The October has that color as its toponym
October
action filter_type
action find_reverse
entity yellow
relation named after
type month
[{'concept': 'month'}, 'named after', 'yellow']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:month . ?s property:named_after resource:yellow }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Indirect
P361
Q5151 Q186081
USER
How many months are approximately the same number of time intervals a part of as that month ?
(c(Q186081),P361,c(Q5151))
action count
action approx
action find_reverse_tuple_counts
relation P361
type Q5151
type Q186081
action count
action filter_type
action find
entity Q124
relation P361
type Q5151
[{'concept': 'Q186081'}, 'P361', {'concept': 'Q5151'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?b ) WHERE { resource:Q124 property:P361 ?t . ?t rdf:type ontology:Q5151 } } . FILTER ( ?i = ?b ) . { SELECT DISTINCT ?s ( COUNT ( ?f ) AS ?i ) WHERE { ?f property:P361 ?s . ?s rdf:type ontology:Q5151 . ?f rdf:type ontology:Q186081 } GROUP BY ?s } }
action count
action approx
action find_reverse_tuple_counts
relation part of
type month
type time interval
action count
action filter_type
action find
entity October
relation part of
type month
[{'concept': 'time interval'}, 'part of', {'concept': 'month'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?b ) WHERE { resource:October property:part_of ?t . ?t rdf:type ontology:month } } . FILTER ( ?i = ?b ) . { SELECT DISTINCT ?s ( COUNT ( ?f ) AS ?i ) WHERE { ?f property:part_of ?s . ?s rdf:type ontology:month . ?f rdf:type ontology:time_interval } GROUP BY ?s } }
[]
month time interval
SYSTEM
9
Q120 Q121 Q122 Q123 Q124 Q125 Q126 Q119 Q118
(c(Q186081),P361,c(Q5151))
action count
action approx
action find_reverse_tuple_counts
relation P361
type Q5151
type Q186081
action count
action filter_type
action find
entity Q124
relation P361
type Q5151
[ANSWER]
[{'concept': 'Q186081'}, 'P361', {'concept': 'Q5151'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?b ) WHERE { resource:Q124 property:P361 ?t . ?t rdf:type ontology:Q5151 } } . FILTER ( ?i = ?b ) . { SELECT DISTINCT ?s ( COUNT ( ?f ) AS ?i ) WHERE { ?f property:P361 ?s . ?s rdf:type ontology:Q5151 . ?f rdf:type ontology:Q186081 } GROUP BY ?s } }
June July August September October November December May April
9
action count
action approx
action find_reverse_tuple_counts
relation part of
type month
type time interval
action count
action filter_type
action find
entity October
relation part of
type month
[{'concept': 'time interval'}, 'part of', {'concept': 'month'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?b ) WHERE { resource:October property:part_of ?t . ?t rdf:type ontology:month } } . FILTER ( ?i = ?b ) . { SELECT DISTINCT ?s ( COUNT ( ?f ) AS ?i ) WHERE { ?f property:part_of ?s . ?s rdf:type ontology:month . ?f rdf:type ontology:time_interval } GROUP BY ?s } }
[]