Simple Question (Direct)
Simple Question
Q10856302
P19
Q515
USER
Which city was Arnošt Förchtgott Tovačovský born at ?
(Q10856302,P19,c(Q515))
action filter_type
action find
entity Q10856302
relation P19
type Q515
['Q10856302', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?r WHERE { resource:Q10856302 property:P19 ?r . ?r rdf:type ontology:Q515 }
Arnošt Förchtgott Tovačovský
action filter_type
action find
entity Arnošt Förchtgott Tovačovský
relation place of birth
type city
['Arnošt Förchtgott Tovačovský', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?r WHERE { resource:Arnošt_Förchtgott_Tovačovský property:place_of_birth ?r . ?r rdf:type ontology:city }
[]
city
Q1261993
SYSTEM
Tovačov
Q1261993
(Q10856302,P19,c(Q515))
action filter_type
action find
entity Q10856302
relation P19
type Q515
Arnošt Förchtgott [ANSWER]ský was born in [ANSWER]
['Q10856302', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?r WHERE { resource:Q10856302 property:P19 ?r . ?r rdf:type ontology:Q515 }
Tovačov
Arnošt Förchtgott Tovačovský was born in Tovačov
Tovačov
action filter_type
action find
entity Arnošt Förchtgott Tovačovský
relation place of birth
type city
['Arnošt Förchtgott Tovačovský', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?r WHERE { resource:Arnošt_Förchtgott_Tovačovský property:place_of_birth ?r . ?r rdf:type ontology:city }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1261993
P20
Q502895
USER
Which people have that city as place of death ?
(c(Q502895),P20,Q1261993)
action filter_type
action find_reverse
entity Q1261993
relation P20
type Q502895
[{'concept': 'Q502895'}, 'P20', 'Q1261993']
SELECT DISTINCT ?r WHERE { ?r property:P20 resource:Q1261993 . ?r rdf:type ontology:Q502895 }
Tovačov
action filter_type
action find_reverse
entity Tovačov
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Tovačov']
SELECT DISTINCT ?r WHERE { ?r property:place_of_death resource:Tovačov . ?r rdf:type ontology:common_name }
[]
common name
Q87777 Q1084822 Q1142765
SYSTEM
Gottfried Fritsch, Christoph Erler, Ctibor Tobischau von Cimburg
Q87777 Q1084822 Q1142765
(c(Q502895),P20,Q1261993)
action filter_type
action find_reverse
entity Q1261993
relation P20
type Q502895
[ANSWERS] have that city as place of death
[{'concept': 'Q502895'}, 'P20', 'Q1261993']
SELECT DISTINCT ?r WHERE { ?r property:P20 resource:Q1261993 . ?r rdf:type ontology:Q502895 }
Gottfried Fritsch Christoph Erler Ctibor Tobischau von Cimburg
Gottfried Fritsch, Christoph Erler and Ctibor Tobischau von Cimburg have that city as place of death
Gottfried Fritsch Christoph Erler Ctibor Tobischau von Cimburg
action filter_type
action find_reverse
entity Tovačov
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Tovačov']
SELECT DISTINCT ?r WHERE { ?r property:place_of_death resource:Tovačov . ?r rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q87777
P27
Q1048835
USER
Which political territory is that person an inhabitant of ?
(Q87777,P27,c(Q1048835))
action filter_type
action find
entity Q87777
relation P27
type Q1048835
['Q87777', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?p WHERE { resource:Q87777 property:P27 ?p . ?p rdf:type ontology:Q1048835 }
Gottfried Fritsch
action filter_type
action find
entity Gottfried Fritsch
relation country of citizenship
type political territorial entity
['Gottfried Fritsch', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Gottfried_Fritsch property:country_of_citizenship ?p . ?p rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Clarification for simple ques.
Q1142765
SYSTEM
Did you mean Ctibor Tobischau von Cimburg ?
Q87777 Q1084822 Q1142765
(Q87777,P27,c(Q1048835)) (Q1084822,P27,c(Q1048835)) (Q1142765,P27,c(Q1048835))
[ANSWER]
['Q87777', 'P27', {'concept': 'Q1048835'}] ['Q1084822', 'P27', {'concept': 'Q1048835'}] ['Q1142765', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?p WHERE { resource:Q87777 property:P27 ?p . ?p rdf:type ontology:Q1048835 }
Gottfried Fritsch Christoph Erler Ctibor Tobischau von Cimburg
Did you mean Ctibor Tobischau von Cimburg ?
Ctibor Tobischau von Cimburg
['Gottfried Fritsch', 'country of citizenship', {'concept': 'political territorial entity'}] ['Christoph Erler', 'country of citizenship', {'concept': 'political territorial entity'}] ['Ctibor Tobischau von Cimburg', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Gottfried_Fritsch property:country_of_citizenship ?p . ?p rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant Gottfried Fritsch. Could you tell me the answer for that?
(Q87777,P27,c(Q1048835))
Q87777
['Q87777', 'P27', {'concept': 'Q1048835'}]
['Gottfried Fritsch', 'country of citizenship', {'concept': 'political territorial entity'}]
[]
Q40
SYSTEM
Austria
Q40
(Q87777,P27,c(Q1048835))
action filter_type
action find
entity Q87777
relation P27
type Q1048835
[ANSWER] is that person an inhabitant of
['Q87777', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?p WHERE { resource:Q87777 property:P27 ?p . ?p rdf:type ontology:Q1048835 }
Austria
Austria is that person an inhabitant of
Austria
action filter_type
action find
entity Gottfried Fritsch
relation country of citizenship
type political territorial entity
['Gottfried Fritsch', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Gottfried_Fritsch property:country_of_citizenship ?p . ?p rdf:type ontology:political_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q40 Q114
P530
Q15617994
USER
Does Kenya have diplomatic relations with Austria ?
(Q40,P530,Q114)
action is_in
entity Q114
action find
entity Q40
relation P530
['Q40', 'P530', 'Q114']
ASK WHERE { resource:Q40 property:P530 resource:Q114 }
Austria Kenya
action is_in
entity Kenya
action find
entity Austria
relation diplomatic relation
['Austria', 'diplomatic relation', 'Kenya']
ASK WHERE { resource:Austria property:diplomatic_relation resource:Kenya }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q40,P530,Q114)
action is_in
entity Q114
action find
entity Q40
relation P530
[ANSWER]
['Q40', 'P530', 'Q114']
ASK WHERE { resource:Q40 property:P530 resource:Q114 }
Yes
action is_in
entity Kenya
action find
entity Austria
relation diplomatic relation
['Austria', 'diplomatic relation', 'Kenya']
ASK WHERE { resource:Austria property:diplomatic_relation resource:Kenya }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q1142765 Q1261993
P19
Q515
USER
Is Tovačov the birthplace of Ctibor Tobischau von Cimburg ?
(Q1142765,P19,Q1261993)
action is_in
entity Q1261993
action find
entity Q1142765
relation P19
['Q1142765', 'P19', 'Q1261993']
ASK WHERE { resource:Q1142765 property:P19 resource:Q1261993 }
Ctibor Tobischau von Cimburg Tovačov
action is_in
entity Tovačov
action find
entity Ctibor Tobischau von Cimburg
relation place of birth
['Ctibor Tobischau von Cimburg', 'place of birth', 'Tovačov']
ASK WHERE { resource:Ctibor_Tobischau_von_Cimburg property:place_of_birth resource:Tovačov }
[]
city
SYSTEM
YES
(Q1142765,P19,Q1261993)
action is_in
entity Q1261993
action find
entity Q1142765
relation P19
[ANSWER]
['Q1142765', 'P19', 'Q1261993']
ASK WHERE { resource:Q1142765 property:P19 resource:Q1261993 }
Yes
action is_in
entity Tovačov
action find
entity Ctibor Tobischau von Cimburg
relation place of birth
['Ctibor Tobischau von Cimburg', 'place of birth', 'Tovačov']
ASK WHERE { resource:Ctibor_Tobischau_von_Cimburg property:place_of_birth resource:Tovačov }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q40
P35
Q502895
USER
How many people have the highest formal authority in Austria ?
(Q40,P35,c(Q502895))
action count
action filter_type
action find
entity Q40
relation P35
type Q502895
['Q40', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?g ) WHERE { resource:Q40 property:P35 ?q . ?q rdf:type ontology:Q502895 }
Austria
action count
action filter_type
action find
entity Austria
relation head of state
type common name
['Austria', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?g ) WHERE { resource:Austria property:head_of_state ?q . ?q rdf:type ontology:common_name }
[]
common name
SYSTEM
10
Q72898 Q84263 Q13014 Q72856 Q1260 Q84475 Q78490 Q84204 Q11753 Q11726
(Q40,P35,c(Q502895))
action count
action filter_type
action find
entity Q40
relation P35
type Q502895
[ANSWER]
['Q40', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?g ) WHERE { resource:Q40 property:P35 ?q . ?q rdf:type ontology:Q502895 }
Adolf Schärf Wilhelm Miklas Franz Jonas Rudolf Kirchschläger Kurt Waldheim Michael Hainisch Thomas Klestil Theodor Körner Heinz Fischer Karl Renner
10
action count
action filter_type
action find
entity Austria
relation head of state
type common name
['Austria', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?g ) WHERE { resource:Austria property:head_of_state ?q . ?q rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q40
P159
Q28640
USER
Which profession has headquarters located at Austria ?
(c(Q28640),P159,Q40)
action filter_type
action find_reverse
entity Q40
relation P159
type Q28640
[{'concept': 'Q28640'}, 'P159', 'Q40']
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q28640 . ?c property:P159 resource:Q40 }
Austria
action filter_type
action find_reverse
entity Austria
relation headquarters location
type profession
[{'concept': 'profession'}, 'headquarters location', 'Austria']
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:profession . ?c property:headquarters_location resource:Austria }
[]
profession
Q5285357
SYSTEM
Djinnworks
Q5285357
(c(Q28640),P159,Q40)
action filter_type
action find_reverse
entity Q40
relation P159
type Q28640
[ANSWER] has headquarters located at Austria
[{'concept': 'Q28640'}, 'P159', 'Q40']
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q28640 . ?c property:P159 resource:Q40 }
Djinnworks
Djinnworks has headquarters located at Austria
Djinnworks
action filter_type
action find_reverse
entity Austria
relation headquarters location
type profession
[{'concept': 'profession'}, 'headquarters location', 'Austria']
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:profession . ?c property:headquarters_location resource:Austria }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5285357
P452
Q268592
USER
What industry is that profession a part of ?
(Q5285357,P452,c(Q268592))
action filter_type
action find
entity Q5285357
relation P452
type Q268592
['Q5285357', 'P452', {'concept': 'Q268592'}]
SELECT DISTINCT ?w WHERE { resource:Q5285357 property:P452 ?w . ?w rdf:type ontology:Q268592 }
Djinnworks
action filter_type
action find
entity Djinnworks
relation industry
type economic branch
['Djinnworks', 'industry', {'concept': 'economic branch'}]
SELECT DISTINCT ?w WHERE { resource:Djinnworks property:industry ?w . ?w rdf:type ontology:economic_branch }
[]
economic branch
Q941594
SYSTEM
video game industry
Q941594
(Q5285357,P452,c(Q268592))
action filter_type
action find
entity Q5285357
relation P452
type Q268592
What industry is that profession a part of
['Q5285357', 'P452', {'concept': 'Q268592'}]
SELECT DISTINCT ?w WHERE { resource:Q5285357 property:P452 ?w . ?w rdf:type ontology:Q268592 }
video game industry
What industry is that profession a part of
video game industry
action filter_type
action find
entity Djinnworks
relation industry
type economic branch
['Djinnworks', 'industry', {'concept': 'economic branch'}]
SELECT DISTINCT ?w WHERE { resource:Djinnworks property:industry ?w . ?w rdf:type ontology:economic_branch }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q6959081 Q1261993
P17
Q15617994
USER
Which administrative territories are Tovačov or Naguru located in ?
OR((Q1261993,P17,c(Q15617994)), (Q6959081,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q1261993
relation P17
action find
entity Q6959081
relation P17
type Q15617994
{'OR': [['Q1261993', 'P17', {'concept': 'Q15617994'}], ['Q6959081', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q6959081 property:P17 ?f } UNION { resource:Q1261993 property:P17 ?f } } . ?f rdf:type ontology:Q15617994 }
Naguru Tovačov
action filter_type
action union
action find
entity Tovačov
relation country
action find
entity Naguru
relation country
type designation for an administrative territorial entity
{'OR': [['Tovačov', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Naguru', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Naguru property:country ?f } UNION { resource:Tovačov property:country ?f } } . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q213 Q668
SYSTEM
Czech Republic, India
Q213 Q668
OR((Q1261993,P17,c(Q15617994)), (Q6959081,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q1261993
relation P17
action find
entity Q6959081
relation P17
type Q15617994
Tovačov or Naguru are located in [ANSWERS]
{'OR': [['Q1261993', 'P17', {'concept': 'Q15617994'}], ['Q6959081', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q6959081 property:P17 ?f } UNION { resource:Q1261993 property:P17 ?f } } . ?f rdf:type ontology:Q15617994 }
Czech Republic India
Tovačov or Naguru are located in Czech Republic and India
Czech Republic India
action filter_type
action union
action find
entity Tovačov
relation country
action find
entity Naguru
relation country
type designation for an administrative territorial entity
{'OR': [['Tovačov', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Naguru', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Naguru property:country ?f } UNION { resource:Tovačov property:country ?f } } . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q801
P530
Q15617994
USER
Are Israel known to have diplomatic connections with those ones ?
(Q801,P530,Q213) (Q801,P530,Q668)
action is_in
entity prev_answer
action find
entity Q801
relation P530
['Q801', 'P530', 'Q213'] ['Q801', 'P530', 'Q668']
ASK WHERE { resource:Q801 property:P530 ?f . VALUES ( ?f ) { ( resource:Q213 ) ( resource:Q668 ) } }
Israel
action is_in
entity prev_answer
action find
entity Israel
relation diplomatic relation
['Israel', 'diplomatic relation', 'Czech Republic'] ['Israel', 'diplomatic relation', 'India']
ASK WHERE { resource:Israel property:diplomatic_relation ?f . VALUES ( ?f ) { ( resource:Czech_Republic ) ( resource:India ) } }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q801,P530,Q213) (Q801,P530,Q668)
action is_in
entity prev_answer
action find
entity Q801
relation P530
[ANSWER]
['Q801', 'P530', 'Q213'] ['Q801', 'P530', 'Q668']
ASK WHERE { resource:Q801 property:P530 ?f . VALUES ( ?f ) { ( resource:Q213 ) ( resource:Q668 ) } }
Yes
action is_in
entity prev_answer
action find
entity Israel
relation diplomatic relation
['Israel', 'diplomatic relation', 'Czech Republic'] ['Israel', 'diplomatic relation', 'India']
ASK WHERE { resource:Israel property:diplomatic_relation ?f . VALUES ( ?f ) { ( resource:Czech_Republic ) ( resource:India ) } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic relations with max number of administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action argmax
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?i ) AS ?b ) WHERE { ?i rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q15617994 . ?k property:P530 ?i } GROUP BY ?k } . FILTER ( ?b = ?j ) . { SELECT DISTINCT ( MAX ( ?t ) AS ?j ) { SELECT DISTINCT ?r ( COUNT ( ?m ) AS ?t ) WHERE { ?r property:P530 ?m . ?r rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q15617994 } GROUP BY ?r } } }
action argmax
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?i ) AS ?b ) WHERE { ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k property:diplomatic_relation ?i } GROUP BY ?k } . FILTER ( ?b = ?j ) . { SELECT DISTINCT ( MAX ( ?t ) AS ?j ) { SELECT DISTINCT ?r ( COUNT ( ?m ) AS ?t ) WHERE { ?r property:diplomatic_relation ?m . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?r } } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q230
SYSTEM
Georgia
Q230
(c(Q15617994),P530,c(Q15617994))
action argmax
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
And [ANSWER] have diplomatic relations with max number of administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?i ) AS ?b ) WHERE { ?i rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q15617994 . ?k property:P530 ?i } GROUP BY ?k } . FILTER ( ?b = ?j ) . { SELECT DISTINCT ( MAX ( ?t ) AS ?j ) { SELECT DISTINCT ?r ( COUNT ( ?m ) AS ?t ) WHERE { ?r property:P530 ?m . ?r rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q15617994 } GROUP BY ?r } } }
Georgia
And Georgia have diplomatic relations with max number of administrative territories
Georgia
action argmax
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?i ) AS ?b ) WHERE { ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k property:diplomatic_relation ?i } GROUP BY ?k } . FILTER ( ?b = ?j ) . { SELECT DISTINCT ( MAX ( ?t ) AS ?j ) { SELECT DISTINCT ?r ( COUNT ( ?m ) AS ?t ) WHERE { ?r property:diplomatic_relation ?m . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?r } } }
[]