Simple Question (Direct)
Simple Question
Q3134615
P21
Q290
USER
What is the sex of Hervé Pauchon ?
(Q3134615,P21,c(Q290))
action filter_type
action find
entity Q3134615
relation P21
type Q290
['Q3134615', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?t WHERE { resource:Q3134615 property:P21 ?t . ?t rdf:type ontology:Q290 }
Hervé Pauchon
action filter_type
action find
entity Hervé Pauchon
relation gender
type sex
['Hervé Pauchon', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?t WHERE { resource:Hervé_Pauchon property:gender ?t . ?t rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q3134615,P21,c(Q290))
action filter_type
action find
entity Q3134615
relation P21
type Q290
The sex of Hervé Pauchon is the [ANSWER]
['Q3134615', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?t WHERE { resource:Q3134615 property:P21 ?t . ?t rdf:type ontology:Q290 }
male
The sex of Hervé Pauchon is the male
male
action filter_type
action find
entity Hervé Pauchon
relation gender
type sex
['Hervé Pauchon', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?t WHERE { resource:Hervé_Pauchon property:gender ?t . ?t rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3134615
P108
Q4830453
USER
Which business enterprise is the employer of Hervé Pauchon ?
(Q3134615,P108,c(Q4830453))
action filter_type
action find
entity Q3134615
relation P108
type Q4830453
['Q3134615', 'P108', {'concept': 'Q4830453'}]
SELECT DISTINCT ?d WHERE { resource:Q3134615 property:P108 ?d . ?d rdf:type ontology:Q4830453 }
Hervé Pauchon
action filter_type
action find
entity Hervé Pauchon
relation employer
type business enterprise
['Hervé Pauchon', 'employer', {'concept': 'business enterprise'}]
SELECT DISTINCT ?d WHERE { resource:Hervé_Pauchon property:employer ?d . ?d rdf:type ontology:business_enterprise }
[]
business enterprise
Q19905
SYSTEM
France Inter
Q19905
(Q3134615,P108,c(Q4830453))
action filter_type
action find
entity Q3134615
relation P108
type Q4830453
[ANSWER] is the employer of Hervé Pauchon
['Q3134615', 'P108', {'concept': 'Q4830453'}]
SELECT DISTINCT ?d WHERE { resource:Q3134615 property:P108 ?d . ?d rdf:type ontology:Q4830453 }
France Inter
France Inter is the employer of Hervé Pauchon
France Inter
action filter_type
action find
entity Hervé Pauchon
relation employer
type business enterprise
['Hervé Pauchon', 'employer', {'concept': 'business enterprise'}]
SELECT DISTINCT ?d WHERE { resource:Hervé_Pauchon property:employer ?d . ?d rdf:type ontology:business_enterprise }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3134615
P161
Q838948
USER
Which works of art have Hervé Pauchon as actor ?
(c(Q838948),P161,Q3134615)
action filter_type
action find_reverse
entity Q3134615
relation P161
type Q838948
[{'concept': 'Q838948'}, 'P161', 'Q3134615']
SELECT DISTINCT ?o WHERE { ?o property:P161 resource:Q3134615 . ?o rdf:type ontology:Q838948 }
Hervé Pauchon
action filter_type
action find_reverse
entity Hervé Pauchon
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Hervé Pauchon']
SELECT DISTINCT ?o WHERE { ?o property:cast_member resource:Hervé_Pauchon . ?o rdf:type ontology:work_of_art }
[]
work of art
Q130271 Q128982 Q392769
SYSTEM
Live and Become, Cyrano de Bergerac, Agent trouble
Q392769 Q3224578 Q130271 Q128982
(c(Q838948),P161,Q3134615)
action filter_type
action find_reverse
entity Q3134615
relation P161
type Q838948
[ANSWERS] have Hervé Pauchon as actor
[{'concept': 'Q838948'}, 'P161', 'Q3134615']
SELECT DISTINCT ?o WHERE { ?o property:P161 resource:Q3134615 . ?o rdf:type ontology:Q838948 }
Agent trouble The Miracle Live and Become Cyrano de Bergerac
Live and Become, Cyrano de Bergerac and Agent trouble have Hervé Pauchon as actor
Live and Become Cyrano de Bergerac Agent trouble
action filter_type
action find_reverse
entity Hervé Pauchon
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Hervé Pauchon']
SELECT DISTINCT ?o WHERE { ?o property:cast_member resource:Hervé_Pauchon . ?o rdf:type ontology:work_of_art }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q130271 Q128982 Q392769
P57
Q502895
USER
Who directed those works of art ?
(Q130271,P57,c(Q502895)) (Q128982,P57,c(Q502895)) (Q392769,P57,c(Q502895))
action filter_type
action find
entity prev_answer
relation P57
type Q502895
['Q130271', 'P57', {'concept': 'Q502895'}] ['Q128982', 'P57', {'concept': 'Q502895'}] ['Q392769', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { ?q property:P57 ?y . ?y rdf:type ontology:Q502895 . VALUES ( ?q ) { ( resource:Q392769 ) ( resource:Q3224578 ) ( resource:Q130271 ) } }
Live and Become Cyrano de Bergerac Agent trouble
action filter_type
action find
entity prev_answer
relation director
type common name
['Live and Become', 'director', {'concept': 'common name'}] ['Cyrano de Bergerac', 'director', {'concept': 'common name'}] ['Agent trouble', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { ?q property:director ?y . ?y rdf:type ontology:common_name . VALUES ( ?q ) { ( resource:Agent_trouble ) ( resource:The_Miracle ) ( resource:Live_and_Become ) } }
[]
common name
Q543982 Q709973 Q1668864
SYSTEM
Radu Mihăileanu, Jean-Paul Rappeneau, Jean-Pierre Mocky
Q543982 Q709973 Q1668864
(Q130271,P57,c(Q502895)) (Q128982,P57,c(Q502895)) (Q392769,P57,c(Q502895))
action filter_type
action find
entity prev_answer
relation P57
type Q502895
[ANSWERS] directed those works of art
['Q130271', 'P57', {'concept': 'Q502895'}] ['Q128982', 'P57', {'concept': 'Q502895'}] ['Q392769', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { ?q property:P57 ?y . ?y rdf:type ontology:Q502895 . VALUES ( ?q ) { ( resource:Q392769 ) ( resource:Q3224578 ) ( resource:Q130271 ) } }
Radu Mihăileanu Jean-Paul Rappeneau Jean-Pierre Mocky
Radu Mihăileanu, Jean-Paul Rappeneau and Jean-Pierre Mocky directed those works of art
Radu Mihăileanu Jean-Paul Rappeneau Jean-Pierre Mocky
action filter_type
action find
entity prev_answer
relation director
type common name
['Live and Become', 'director', {'concept': 'common name'}] ['Cyrano de Bergerac', 'director', {'concept': 'common name'}] ['Agent trouble', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { ?q property:director ?y . ?y rdf:type ontology:common_name . VALUES ( ?q ) { ( resource:Agent_trouble ) ( resource:The_Miracle ) ( resource:Live_and_Become ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q543982
P19
Q515
USER
Which city is the place of birth of that person ?
(Q543982,P19,c(Q515))
action filter_type
action find
entity Q543982
relation P19
type Q515
['Q543982', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?f WHERE { resource:Q543982 property:P19 ?f . ?f rdf:type ontology:Q515 }
Radu Mihăileanu
action filter_type
action find
entity Radu Mihăileanu
relation place of birth
type city
['Radu Mihăileanu', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?f WHERE { resource:Radu_Mihăileanu property:place_of_birth ?f . ?f rdf:type ontology:city }
[]
city
Clarification for simple ques.
Q709973
SYSTEM
Did you mean Jean-Paul Rappeneau ?
Q543982 Q709973 Q1668864
(Q543982,P19,c(Q515)) (Q709973,P19,c(Q515)) (Q1668864,P19,c(Q515))
[ANSWER]
['Q543982', 'P19', {'concept': 'Q515'}] ['Q709973', 'P19', {'concept': 'Q515'}] ['Q1668864', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?f WHERE { resource:Q543982 property:P19 ?f . ?f rdf:type ontology:Q515 }
Radu Mihăileanu Jean-Paul Rappeneau Jean-Pierre Mocky
Did you mean Jean-Paul Rappeneau ?
Jean-Paul Rappeneau
['Radu Mihăileanu', 'place of birth', {'concept': 'city'}] ['Jean-Paul Rappeneau', 'place of birth', {'concept': 'city'}] ['Jean-Pierre Mocky', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?f WHERE { resource:Radu_Mihăileanu property:place_of_birth ?f . ?f rdf:type ontology:city }
[]
Simple Question (Coreferenced)
USER
No, I meant Radu Mihăileanu. Could you tell me the answer for that?
(Q543982,P19,c(Q515))
Q543982
['Q543982', 'P19', {'concept': 'Q515'}]
['Radu Mihăileanu', 'place of birth', {'concept': 'city'}]
[]
Q19660
SYSTEM
Bucharest
Q19660
(Q543982,P19,c(Q515))
action filter_type
action find
entity Q543982
relation P19
type Q515
[ANSWER] is the place of birth of that person
['Q543982', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?f WHERE { resource:Q543982 property:P19 ?f . ?f rdf:type ontology:Q515 }
Bucharest
Bucharest is the place of birth of that person
Bucharest
action filter_type
action find
entity Radu Mihăileanu
relation place of birth
type city
['Radu Mihăileanu', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?f WHERE { resource:Radu_Mihăileanu property:place_of_birth ?f . ?f rdf:type ontology:city }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q19660 Q956 Q12169152
P190
Q56061
USER
Is Bucharest a sister city of Beijing and Cearângu ?
(Q19660,P190,Q956) (Q19660,P190,Q12169152)
action is_in
entity Q19660
action intersection
action find_reverse
entity Q956
relation P190
action find_reverse
entity Q12169152
relation P190
['Q19660', 'P190', 'Q956'] ['Q19660', 'P190', 'Q12169152']
ASK WHERE { resource:Q19660 property:P190 resource:Q956 . resource:Q19660 property:P190 resource:Q12169152 }
Bucharest Beijing Cearângu
action is_in
entity Bucharest
action intersection
action find_reverse
entity Beijing
relation sister city
action find_reverse
entity Cearângu
relation sister city
['Bucharest', 'sister city', 'Beijing'] ['Bucharest', 'sister city', 'Cearângu']
ASK WHERE { resource:Bucharest property:sister_city resource:Beijing . resource:Bucharest property:sister_city resource:Cearângu }
[]
administrative territorial entity
SYSTEM
YES and NO respectively
(Q19660,P190,Q956) (Q19660,P190,Q12169152)
action is_in
entity Q19660
action intersection
action find_reverse
entity Q956
relation P190
action find_reverse
entity Q12169152
relation P190
[ANSWER]
['Q19660', 'P190', 'Q956'] ['Q19660', 'P190', 'Q12169152']
ASK WHERE { resource:Q19660 property:P190 resource:Q956 . resource:Q19660 property:P190 resource:Q12169152 }
YES and NO respectively
action is_in
entity Bucharest
action intersection
action find_reverse
entity Beijing
relation sister city
action find_reverse
entity Cearângu
relation sister city
['Bucharest', 'sister city', 'Beijing'] ['Bucharest', 'sister city', 'Cearângu']
ASK WHERE { resource:Bucharest property:sister_city resource:Beijing . resource:Bucharest property:sister_city resource:Cearângu }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q19660
P551
Q502895
USER
Which people dwell at Bucharest ?
(c(Q502895),P551,Q19660)
action filter_type
action find_reverse
entity Q19660
relation P551
type Q502895
[{'concept': 'Q502895'}, 'P551', 'Q19660']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q502895 . ?m property:P551 resource:Q19660 }
Bucharest
action filter_type
action find_reverse
entity Bucharest
relation residence
type common name
[{'concept': 'common name'}, 'residence', 'Bucharest']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:common_name . ?m property:residence resource:Bucharest }
[]
common name
Q1054731 Q446949 Q1065030
SYSTEM
Yervant Odian, Corina Ungureanu, Liviu Ciulei
Q3038855 Q20745254 Q3097906 Q3697548 Q7520206 Q316378 Q2732894 Q239751 Q1054731 Q2640602 Q6063865 Q230346 Q12729936 Q924245 Q446949 Q660289 Q7179167 Q232432 Q231028 Q5186338 Q239696 Q2439034 Q7288404 Q1065030 Q273507 Q352738
(c(Q502895),P551,Q19660)
action filter_type
action find_reverse
entity Q19660
relation P551
type Q502895
[ANSWERS] dwell at Bucharest
[{'concept': 'Q502895'}, 'P551', 'Q19660']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q502895 . ?m property:P551 resource:Q19660 }
Dragoș Băjenaru Elena Ruse Răzvan Sabău Andreea Mitu Simona Matei Victor Hănescu Victor Crivoi Irina-Camelia Begu Yervant Odian Mădălina Gojnea Ionuț Moldovan Monica Niculescu Henrieta Delavrancea Ion Țiriac Corina Ungureanu Cătălina Cristea Petru-Alexandru Luncanu Raluca Olaru Alexandra Dulgheru Cristina Dinu Alexandra Cadanțu Mihaela Buzărnescu Raluca Sandu Liviu Ciulei Ruxandra Dragomir Mircea Albulescu
Yervant Odian, Corina Ungureanu and Liviu Ciulei dwell at Bucharest
Yervant Odian Corina Ungureanu Liviu Ciulei
action filter_type
action find_reverse
entity Bucharest
relation residence
type common name
[{'concept': 'common name'}, 'residence', 'Bucharest']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:common_name . ?m property:residence resource:Bucharest }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q19660
P6
Q502895
USER
What people are that city the head of goverment of ?
(Q1054731,P6,c(Q502895)) (Q446949,P6,c(Q502895)) (Q1065030,P6,c(Q502895))
action filter_type
action find
entity Q19660
relation P6
type Q502895
['Q1054731', 'P6', {'concept': 'Q502895'}] ['Q446949', 'P6', {'concept': 'Q502895'}] ['Q1065030', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q502895 . resource:Q19660 property:P6 ?h }
Bucharest
action filter_type
action find
entity Bucharest
relation head of government
type common name
['Yervant Odian', 'head of government', {'concept': 'common name'}] ['Corina Ungureanu', 'head of government', {'concept': 'common name'}] ['Liviu Ciulei', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:common_name . resource:Bucharest property:head_of_government ?h }
[]
common name
Q57279 Q16593781 Q2016394
SYSTEM
Traian Băsescu, Gabriela Firea, Adriean Videanu
Q2016394 Q57279 Q16593781 Q980828
(Q1054731,P6,c(Q502895)) (Q446949,P6,c(Q502895)) (Q1065030,P6,c(Q502895))
action filter_type
action find
entity Q19660
relation P6
type Q502895
[ANSWERS] that are city the head of goverment of
['Q1054731', 'P6', {'concept': 'Q502895'}] ['Q446949', 'P6', {'concept': 'Q502895'}] ['Q1065030', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q502895 . resource:Q19660 property:P6 ?h }
Adriean Videanu Traian Băsescu Gabriela Firea Sorin Oprescu
Traian Băsescu, Gabriela Firea and Adriean Videanu that are city the head of goverment of
Traian Băsescu Gabriela Firea Adriean Videanu
action filter_type
action find
entity Bucharest
relation head of government
type common name
['Yervant Odian', 'head of government', {'concept': 'common name'}] ['Corina Ungureanu', 'head of government', {'concept': 'common name'}] ['Liviu Ciulei', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:common_name . resource:Bucharest property:head_of_government ?h }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q19660
P1376
Q7275
USER
Which state has Bucharest has its center of administration ?
(Q19660,P1376,c(Q7275))
action filter_type
action find
entity Q19660
relation P1376
type Q7275
['Q19660', 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?c WHERE { resource:Q19660 property:P1376 ?c . ?c rdf:type ontology:Q7275 }
Bucharest
action filter_type
action find
entity Bucharest
relation capital of
type state
['Bucharest', 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?c WHERE { resource:Bucharest property:capital_of ?c . ?c rdf:type ontology:state }
[]
state
Q203493
SYSTEM
Kingdom of Romania
Q203493
(Q19660,P1376,c(Q7275))
action filter_type
action find
entity Q19660
relation P1376
type Q7275
The [ANSWER] has Bucharest has its center of administration
['Q19660', 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?c WHERE { resource:Q19660 property:P1376 ?c . ?c rdf:type ontology:Q7275 }
Kingdom of Romania
The Kingdom of Romania has Bucharest has its center of administration
Kingdom of Romania
action filter_type
action find
entity Bucharest
relation capital of
type state
['Bucharest', 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?c WHERE { resource:Bucharest property:capital_of ?c . ?c rdf:type ontology:state }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q173731
Q7275
USER
And also tell me about Ghazni?
(Q173731,P1376,c(Q7275))
action filter_type
action find
entity Q173731
relation P1376
type Q7275
['Q173731', 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q7275 . resource:Q173731 property:P1376 ?g }
Ghazni
action filter_type
action find
entity Ghazni
relation capital of
type state
['Ghazni', 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:state . resource:Ghazni property:capital_of ?g }
[]
state
Q249578
SYSTEM
Ghaznavid Empire
Q249578
(Q173731,P1376,c(Q7275))
action filter_type
action find
entity Q173731
relation P1376
type Q7275
[ANSWER]
['Q173731', 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q7275 . resource:Q173731 property:P1376 ?g }
Ghaznavid Empire
Ghaznavid Empire
action filter_type
action find
entity Ghazni
relation capital of
type state
['Ghazni', 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:state . resource:Ghazni property:capital_of ?g }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Indirect
P1376
Q7275 Q486972
USER
Which states have more number of human settlements as their capital than that state ?
(c(Q486972),P1376,c(Q7275))
action greater
action find_reverse_tuple_counts
relation P1376
type Q7275
type Q486972
action count
action filter_type
action find
entity Q249578
relation P1376
type Q7275
[{'concept': 'Q486972'}, 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?w ) AS ?p ) WHERE { ?w rdf:type ontology:Q486972 . ?q rdf:type ontology:Q7275 . ?w property:P1376 ?q } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?d ) WHERE { resource:Q249578 property:P1376 ?j . ?j rdf:type ontology:Q7275 } } . FILTER ( ?p > ?d ) }
action greater
action find_reverse_tuple_counts
relation capital of
type state
type human settlement
action count
action filter_type
action find
entity Ghaznavid Empire
relation capital of
type state
[{'concept': 'human settlement'}, 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?w ) AS ?p ) WHERE { ?w rdf:type ontology:human_settlement . ?q rdf:type ontology:state . ?w property:capital_of ?q } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?d ) WHERE { resource:Ghaznavid_Empire property:capital_of ?j . ?j rdf:type ontology:state } } . FILTER ( ?p > ?d ) }
[]
state human settlement
Q16957 Q172107 Q953432
SYSTEM
East Germany, Polish–Lithuanian Commonwealth, Couto Misto
Q1649871 Q2361927 Q953432 Q216173 Q16957 Q172107 Q797422 Q235030 Q487829
(c(Q486972),P1376,c(Q7275))
action greater
action find_reverse_tuple_counts
relation P1376
type Q7275
type Q486972
action count
action filter_type
action find
entity Q249578
relation P1376
type Q7275
[ANSWERS] have more number of human settlements as their capital than that state
[{'concept': 'Q486972'}, 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?w ) AS ?p ) WHERE { ?w rdf:type ontology:Q486972 . ?q rdf:type ontology:Q7275 . ?w property:P1376 ?q } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?d ) WHERE { resource:Q249578 property:P1376 ?j . ?j rdf:type ontology:Q7275 } } . FILTER ( ?p > ?d ) }
Kingdom of Poland Duchy of Masovia Couto Misto Free City of Danzig East Germany Polish–Lithuanian Commonwealth Republic of Upper Volta Principality of Antioch Chagatai Khanate
East Germany, Polish–Lithuanian Commonwealth and Couto Misto have more number of human settlements as their capital than that state
East Germany Polish–Lithuanian Commonwealth Couto Misto
action greater
action find_reverse_tuple_counts
relation capital of
type state
type human settlement
action count
action filter_type
action find
entity Ghaznavid Empire
relation capital of
type state
[{'concept': 'human settlement'}, 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?w ) AS ?p ) WHERE { ?w rdf:type ontology:human_settlement . ?q rdf:type ontology:state . ?w property:capital_of ?q } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?d ) WHERE { resource:Ghaznavid_Empire property:capital_of ?j . ?j rdf:type ontology:state } } . FILTER ( ?p > ?d ) }
[]
Clarification
Comparative|More/Less|Mult. entity type|Indirect
P1376
Q7275 Q515 Q486972
USER
Which states have around the same number of cities and human settlements have their first city as that state ?
(c(Q515)|c(Q486972),P1376,c(Q7275))
[[{'concept': 'Q515'}, {'concept': 'Q486972'}], 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?y WHERE { { { ?z property:P1376 ?y } UNION { ?x property:P1376 ?y } } . ?z rdf:type ontology:Q7930989 . ?y rdf:type ontology:Q7275 . ?x rdf:type ontology:Q486972 }
[[{'concept': 'city'}, {'concept': 'human settlement'}], 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?y WHERE { { { ?z property:capital_of ?y } UNION { ?x property:capital_of ?y } } . ?z rdf:type ontology:city . ?y rdf:type ontology:state . ?x rdf:type ontology:human_settlement }
[]
state city human settlement
Comparative|More/Less|Mult. entity type|Clarification
Q16957
SYSTEM
Did you mean East Germany ?
(c(Q515)|c(Q486972),P1376,c(Q7275))
[ANSWER]
[[{'concept': 'Q515'}, {'concept': 'Q486972'}], 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?y WHERE { { { ?z property:P1376 ?y } UNION { ?x property:P1376 ?y } } . ?z rdf:type ontology:Q7930989 . ?y rdf:type ontology:Q7275 . ?x rdf:type ontology:Q486972 }
Did you mean East Germany ?
East Germany
[[{'concept': 'city'}, {'concept': 'human settlement'}], 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?y WHERE { { { ?z property:capital_of ?y } UNION { ?x property:capital_of ?y } } . ?z rdf:type ontology:city . ?y rdf:type ontology:state . ?x rdf:type ontology:human_settlement }
[]
Comparative Reasoning (All)
USER
Yes
(c(Q515)|c(Q486972),P1376,c(Q7275))
[[{'concept': 'Q515'}, {'concept': 'Q486972'}], 'P1376', {'concept': 'Q7275'}]
[[{'concept': 'city'}, {'concept': 'human settlement'}], 'capital of', {'concept': 'state'}]
[]
Q16957 Q133356 Q172107
SYSTEM
East Germany, Ukrainian Soviet Socialist Republic, Polish–Lithuanian Commonwealth
Q178665 Q18285930 Q855044 Q210198 Q133356 Q215530 Q912043 Q1649871 Q203493 Q1574107 Q15864 Q2361927 Q698089 Q953432 Q210542 Q2114397 Q220110 Q1414395 Q756895 Q49697 Q6500954 Q274488 Q216173 Q476757 Q1274468 Q234197 Q1108445 Q153080 Q16957 Q1154540 Q550374 Q19831559 Q172107 Q1048918 Q783489 Q618399 Q180573 Q216786 Q752662 Q797422 Q235030 Q1668970 Q320930 Q849623 Q139670 Q1138904 Q7352 Q9903 Q941881 Q38060 Q844250 Q738144 Q207521 Q1658411 Q157734 Q1415585 Q146328 Q1508143 Q940821 Q248572 Q697084 Q213586 Q11196 Q146713 Q427941 Q697837 Q747314 Q307069 Q28278 Q62454 Q1192067 Q2372248 Q505503 Q153015 Q846670 Q696242 Q1479726 Q467864 Q212056 Q487829 Q3041595 Q484104 Q648297 Q149805
(c(Q515)|c(Q486972),P1376,c(Q7275))
[ANSWERS] have around the same number of cities and human settlements have their first city as that state
[[{'concept': 'Q515'}, {'concept': 'Q486972'}], 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?y WHERE { { { ?z property:P1376 ?y } UNION { ?x property:P1376 ?y } } . ?z rdf:type ontology:Q7930989 . ?y rdf:type ontology:Q7275 . ?x rdf:type ontology:Q486972 }
Mitanni German Empire of 1848/1849 Bhopal State Erivan Khanate Ukrainian Soviet Socialist Republic Kingdom of Ireland Jin Kingdom of Poland Kingdom of Romania Han Zhao United Kingdom of the Netherlands Duchy of Masovia Grand Duchy of Würzburg Couto Misto Second Brazilian Republic Yogyakarta Sultanate Rohan Republic of South Maluku Kediri Liu Song dynasty Zaire Eastern Wu Free City of Danzig Democratic Republic of Afghanistan Republic of Bosnia and Herzegovina Srivijaya Kievan Rus' East Francia East Germany Later Jin Dynasty South African Republic Oldenburg Polish–Lithuanian Commonwealth Suebic Kingdom of Galicia Later Liang dynasty Republic of the Congo South Vietnam Champa Hafsid dynasty Republic of Upper Volta Principality of Antioch Western Qin Cao Wei Oyo Empire Democratic Republic of Armenia Kingdom of Afghanistan Jin dynasty Ming imperium Netherlands New Guinea Gaul Lordship of Ireland United Provinces of the Río de la Plata Abyssinia Kingdom of Sarawak Muscat and Oman Islamic State of Afghanistan Commonwealth of the Philippines Ukrainian State People's Democratic Republic of Ethiopia Sultanate of Maguindanao Duchy of Oldenburg Gondor Republika Srpska Arab Federation Islamic Emirate of Afghanistan Mengjiang Bechuanaland Protectorate Eastern Wei Provisional Government of the Republic of Korea Chen dynasty Min Free State of Oldenburg Cochinchina Kingdom of Saxony Danishmends Reorganized National Government of China Federation of Malaya People's Socialist Republic of Albania Mongolian People's Republic Chagatai Khanate Republic of Iraq United States Army Military Government in Korea Free State of Brunswick Kingdom of Iraq
East Germany, Ukrainian Soviet Socialist Republic and Polish–Lithuanian Commonwealth have around the same number of cities and human settlements have their first city as that state
East Germany Ukrainian Soviet Socialist Republic Polish–Lithuanian Commonwealth
[[{'concept': 'city'}, {'concept': 'human settlement'}], 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?y WHERE { { { ?z property:capital_of ?y } UNION { ?x property:capital_of ?y } } . ?z rdf:type ontology:city . ?y rdf:type ontology:state . ?x rdf:type ontology:human_settlement }
[]
Clarification
Simple Question|Single Entity|Indirect
Q133356
P163
Q17335294
USER
Which coat of arms is associated with that state ?
(Q133356,P163,c(Q17335294))
action filter_type
action find
entity Q133356
relation P163
type Q17335294
['Q133356', 'P163', {'concept': 'Q17335294'}]
SELECT DISTINCT ?p WHERE { resource:Q133356 property:P163 ?p . ?p rdf:type ontology:Q17335294 }
Ukrainian Soviet Socialist Republic
action filter_type
action find
entity Ukrainian Soviet Socialist Republic
relation flag
type flag or coat of arms
['Ukrainian Soviet Socialist Republic', 'flag', {'concept': 'flag or coat of arms'}]
SELECT DISTINCT ?p WHERE { resource:Ukrainian_Soviet_Socialist_Republic property:flag ?p . ?p rdf:type ontology:flag_or_coat_of_arms }
[]
flag or coat of arms
Clarification for simple ques.
Q172107
SYSTEM
Did you mean Polish–Lithuanian Commonwealth ?
Q16957 Q133356 Q172107
(Q16957,P163,c(Q17335294)) (Q133356,P163,c(Q17335294)) (Q172107,P163,c(Q17335294))
[ANSWER]
['Q16957', 'P163', {'concept': 'Q17335294'}] ['Q133356', 'P163', {'concept': 'Q17335294'}] ['Q172107', 'P163', {'concept': 'Q17335294'}]
SELECT DISTINCT ?p WHERE { resource:Q133356 property:P163 ?p . ?p rdf:type ontology:Q17335294 }
East Germany Ukrainian Soviet Socialist Republic Polish–Lithuanian Commonwealth
Did you mean Polish–Lithuanian Commonwealth ?
Polish–Lithuanian Commonwealth
['East Germany', 'flag', {'concept': 'flag or coat of arms'}] ['Ukrainian Soviet Socialist Republic', 'flag', {'concept': 'flag or coat of arms'}] ['Polish–Lithuanian Commonwealth', 'flag', {'concept': 'flag or coat of arms'}]
SELECT DISTINCT ?p WHERE { resource:Ukrainian_Soviet_Socialist_Republic property:flag ?p . ?p rdf:type ontology:flag_or_coat_of_arms }
[]
Simple Question (Coreferenced)
USER
No, I meant Ukrainian Soviet Socialist Republic. Could you tell me the answer for that?
(Q133356,P163,c(Q17335294))
Q133356
['Q133356', 'P163', {'concept': 'Q17335294'}]
['Ukrainian Soviet Socialist Republic', 'flag', {'concept': 'flag or coat of arms'}]
[]
Q877588
SYSTEM
flag of the Ukrainian Soviet Socialist Republic
Q877588
(Q133356,P163,c(Q17335294))
action filter_type
action find
entity Q133356
relation P163
type Q17335294
The [ANSWER] is associated with that state
['Q133356', 'P163', {'concept': 'Q17335294'}]
SELECT DISTINCT ?p WHERE { resource:Q133356 property:P163 ?p . ?p rdf:type ontology:Q17335294 }
flag of the Ukrainian Soviet Socialist Republic
The flag of the Ukrainian Soviet Socialist Republic is associated with that state
flag of the Ukrainian Soviet Socialist Republic
action filter_type
action find
entity Ukrainian Soviet Socialist Republic
relation flag
type flag or coat of arms
['Ukrainian Soviet Socialist Republic', 'flag', {'concept': 'flag or coat of arms'}]
SELECT DISTINCT ?p WHERE { resource:Ukrainian_Soviet_Socialist_Republic property:flag ?p . ?p rdf:type ontology:flag_or_coat_of_arms }
[]