Simple Question (Direct)
Simple Question
Q15402080
P21
Q290
USER
What is the sex of Elaine Gomes ?
(Q15402080,P21,c(Q290))
action filter_type
action find
entity Q15402080
relation P21
type Q290
['Q15402080', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?w WHERE { resource:Q15402080 property:P21 ?w . ?w rdf:type ontology:Q290 }
Elaine Gomes
action filter_type
action find
entity Elaine Gomes
relation gender
type sex
['Elaine Gomes', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?w WHERE { resource:Elaine_Gomes property:gender ?w . ?w rdf:type ontology:sex }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q15402080,P21,c(Q290))
action filter_type
action find
entity Q15402080
relation P21
type Q290
The sex of Elaine Gomes is the [ANSWER]
['Q15402080', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?w WHERE { resource:Q15402080 property:P21 ?w . ?w rdf:type ontology:Q290 }
female
The sex of Elaine Gomes is the female
female
action filter_type
action find
entity Elaine Gomes
relation gender
type sex
['Elaine Gomes', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?w WHERE { resource:Elaine_Gomes property:gender ?w . ?w rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q15402080
P19
Q56061
USER
Which administrative territory is the birthplace of Elaine Gomes ?
(Q15402080,P19,c(Q56061))
action filter_type
action find
entity Q15402080
relation P19
type Q56061
['Q15402080', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q56061 . resource:Q15402080 property:P19 ?e }
Elaine Gomes
action filter_type
action find
entity Elaine Gomes
relation place of birth
type administrative territorial entity
['Elaine Gomes', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:administrative_territorial_entity . resource:Elaine_Gomes property:place_of_birth ?e }
[]
administrative territorial entity
Q43463
SYSTEM
Fortaleza
Q43463
(Q15402080,P19,c(Q56061))
action filter_type
action find
entity Q15402080
relation P19
type Q56061
[ANSWER] is the birthplace of Elaine Gomes
['Q15402080', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q56061 . resource:Q15402080 property:P19 ?e }
Fortaleza
Fortaleza is the birthplace of Elaine Gomes
Fortaleza
action filter_type
action find
entity Elaine Gomes
relation place of birth
type administrative territorial entity
['Elaine Gomes', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:administrative_territorial_entity . resource:Elaine_Gomes property:place_of_birth ?e }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q15402080
P106
Q12737077
USER
What is the job of that person ?
(Q43463,P106,c(Q12737077))
action filter_type
action find
entity Q15402080
relation P106
type Q12737077
['Q43463', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q12737077 . resource:Q15402080 property:P106 ?n }
Elaine Gomes
action filter_type
action find
entity Elaine Gomes
relation occupation
type occupation
['Fortaleza', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:occupation . resource:Elaine_Gomes property:occupation ?n }
[]
occupation
Q13365117
SYSTEM
handball player
Q13365117
(Q43463,P106,c(Q12737077))
action filter_type
action find
entity Q15402080
relation P106
type Q12737077
The job of that person is a [ANSWER]
['Q43463', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q12737077 . resource:Q15402080 property:P106 ?n }
handball player
The job of that person is a handball player
handball player
action filter_type
action find
entity Elaine Gomes
relation occupation
type occupation
['Fortaleza', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:occupation . resource:Elaine_Gomes property:occupation ?n }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q1688941 Q15402080
P106
Q12737077
USER
Or Albrecht Riethmüller?
OR((Q15402080,P106,c(Q12737077)), (Q1688941,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q15402080
relation P106
action find
entity Q1688941
relation P106
type Q12737077
{'OR': [['Q15402080', 'P106', {'concept': 'Q12737077'}], ['Q1688941', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?y WHERE { { ?c property:P106 ?y . VALUES ( ?c ) { ( resource:Q15402080 ) ( resource:Q1688941 ) } } . ?y rdf:type ontology:Q12737077 }
Albrecht Riethmüller Elaine Gomes
action filter_type
action union
action find
entity Elaine Gomes
relation occupation
action find
entity Albrecht Riethmüller
relation occupation
type occupation
{'OR': [['Elaine Gomes', 'occupation', {'concept': 'occupation'}], ['Albrecht Riethmüller', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?y WHERE { { ?c property:occupation ?y . VALUES ( ?c ) { ( resource:Elaine_Gomes ) ( resource:Albrecht_Riethmüller ) } } . ?y rdf:type ontology:occupation }
[]
occupation
Q14915627 Q13365117 Q1622272
SYSTEM
musicologist, handball player, university teacher
Q14915627 Q13365117 Q1622272
OR((Q15402080,P106,c(Q12737077)), (Q1688941,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q15402080
relation P106
action find
entity Q1688941
relation P106
type Q12737077
[ANSWERS]
{'OR': [['Q15402080', 'P106', {'concept': 'Q12737077'}], ['Q1688941', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?y WHERE { { ?c property:P106 ?y . VALUES ( ?c ) { ( resource:Q15402080 ) ( resource:Q1688941 ) } } . ?y rdf:type ontology:Q12737077 }
musicologist handball player university teacher
musicologist handball player university teacher
action filter_type
action union
action find
entity Elaine Gomes
relation occupation
action find
entity Albrecht Riethmüller
relation occupation
type occupation
{'OR': [['Elaine Gomes', 'occupation', {'concept': 'occupation'}], ['Albrecht Riethmüller', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?y WHERE { { ?c property:occupation ?y . VALUES ( ?c ) { ( resource:Elaine_Gomes ) ( resource:Albrecht_Riethmüller ) } } . ?y rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q43463
P276
Q15275719
USER
Which recurring event has its location as Fortaleza ?
(c(Q15275719),P276,Q43463)
action filter_type
action find_reverse
entity Q43463
relation P276
type Q15275719
[{'concept': 'Q15275719'}, 'P276', 'Q43463']
SELECT DISTINCT ?y WHERE { ?y property:P276 resource:Q43463 . ?y rdf:type ontology:Q15275719 }
Fortaleza
action filter_type
action find_reverse
entity Fortaleza
relation location
type recurring event
[{'concept': 'recurring event'}, 'location', 'Fortaleza']
SELECT DISTINCT ?y WHERE { ?y property:location resource:Fortaleza . ?y rdf:type ontology:recurring_event }
[]
recurring event
Q12356214
SYSTEM
World Esperanto Congress 2002
Q12356214
(c(Q15275719),P276,Q43463)
action filter_type
action find_reverse
entity Q43463
relation P276
type Q15275719
[ANSWER] has its location as Fortaleza
[{'concept': 'Q15275719'}, 'P276', 'Q43463']
SELECT DISTINCT ?y WHERE { ?y property:P276 resource:Q43463 . ?y rdf:type ontology:Q15275719 }
World Esperanto Congress 2002
World Esperanto Congress 2002 has its location as Fortaleza
World Esperanto Congress 2002
action filter_type
action find_reverse
entity Fortaleza
relation location
type recurring event
[{'concept': 'recurring event'}, 'location', 'Fortaleza']
SELECT DISTINCT ?y WHERE { ?y property:location resource:Fortaleza . ?y rdf:type ontology:recurring_event }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q43463
P20
Q502895
USER
Which people have that administrative territory as the area of death ?
(c(Q502895),P20,Q12356214)
action filter_type
action find_reverse
entity Q43463
relation P20
type Q502895
[{'concept': 'Q502895'}, 'P20', 'Q12356214']
SELECT DISTINCT ?x WHERE { ?x property:P20 resource:Q43463 . ?x rdf:type ontology:Q502895 }
Fortaleza
action filter_type
action find_reverse
entity Fortaleza
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'World Esperanto Congress 2002']
SELECT DISTINCT ?x WHERE { ?x property:place_of_death resource:Fortaleza . ?x rdf:type ontology:common_name }
[]
common name
Q9611737 Q21450801 Q10346400
SYSTEM
Américo Militão de Freitas Guimarães, Antônio Rodrigues Ferreira, Paulino Nogueira Borges da Fonseca
Q8847068 Q9654343 Q8426433 Q10346400 Q2601698 Q21290125 Q10395805 Q10324671 Q354291 Q10395017 Q728432 Q16939801 Q10383118 Q16491148 Q25513755 Q21450801 Q16929937 Q10357146 Q22337798 Q20048474 Q10290565 Q6881922 Q9010762 Q24302465 Q9611737 Q18477695 Q10285294 Q7128783 Q7128787 Q12345231 Q10311220 Q3810569 Q25513729 Q10332309 Q10357119 Q25513503 Q10395821 Q21686437 Q10313214 Q16939791 Q5741380 Q21996316
(c(Q502895),P20,Q12356214)
action filter_type
action find_reverse
entity Q43463
relation P20
type Q502895
[ANSWERS] have that administrative territory as the area of death
[{'concept': 'Q502895'}, 'P20', 'Q12356214']
SELECT DISTINCT ?x WHERE { ?x property:P20 resource:Q43463 . ?x rdf:type ontology:Q502895 }
Expedito José de Sá Parente Beni Veras Justiniano de Serpa Paulino Nogueira Borges da Fonseca Adolpho Ducke Francisca Clotilde Álvaro Gurgel de Alencar Manuel de Oliveira Paiva José Bezerra Coutinho Zenon Barreto Luiz Vieira da Silva Cláudia Barroso Tomás Pompeu de Sousa Brasil Antônio Augusto de Vasconcelos José Carlos da Costa Ribeiro Júnior Antônio Rodrigues Ferreira Caetano Ximenes de Aragão Raimundo Girão Pedro Pereira da Silva Guimarães Abelardo Fernando Montenegro Gonçalo Inácio de Loiola Albuquerque e Melo Mitotônio Janaína Dutra Moisés Santiago Pimentel Américo Militão de Freitas Guimarães Fernando Weyne Francisco das Chagas Veras Guilherme Studart Hélio Melo Antônio Sales João Brígido dos Santos José Roberto Coelho Santana José de Barcelos Moreira Campos Raimundo Araújo França Antônio Dias Martins Júnior Álvaro Martins Adolfo Herbster Juvenal Galeno Ciro Saraiva Hermes Carleial Abdenago da Rocha Lima
Américo Militão de Freitas Guimarães, Antônio Rodrigues Ferreira and Paulino Nogueira Borges da Fonseca have that administrative territory as the area of death
Américo Militão de Freitas Guimarães Antônio Rodrigues Ferreira Paulino Nogueira Borges da Fonseca
action filter_type
action find_reverse
entity Fortaleza
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'World Esperanto Congress 2002']
SELECT DISTINCT ?x WHERE { ?x property:place_of_death resource:Fortaleza . ?x rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q43463
P937
Q502895
USER
Who is an person who works at Fortaleza ?
(c(Q502895),P937,Q43463)
action filter_type
action find_reverse
entity Q43463
relation P937
type Q502895
[{'concept': 'Q502895'}, 'P937', 'Q43463']
SELECT DISTINCT ?u WHERE { ?u property:P937 resource:Q43463 . ?u rdf:type ontology:Q502895 }
Fortaleza
action filter_type
action find_reverse
entity Fortaleza
relation work location
type common name
[{'concept': 'common name'}, 'work location', 'Fortaleza']
SELECT DISTINCT ?u WHERE { ?u property:work_location resource:Fortaleza . ?u rdf:type ontology:common_name }
[]
common name
Q23962542
SYSTEM
Franciner Macário Diniz
Q23962542
(c(Q502895),P937,Q43463)
action filter_type
action find_reverse
entity Q43463
relation P937
type Q502895
An person works at Fortaleza is the [ANSWER]
[{'concept': 'Q502895'}, 'P937', 'Q43463']
SELECT DISTINCT ?u WHERE { ?u property:P937 resource:Q43463 . ?u rdf:type ontology:Q502895 }
Franciner Macário Diniz
An person works at Fortaleza is the Franciner Macário Diniz
Franciner Macário Diniz
action filter_type
action find_reverse
entity Fortaleza
relation work location
type common name
[{'concept': 'common name'}, 'work location', 'Fortaleza']
SELECT DISTINCT ?u WHERE { ?u property:work_location resource:Fortaleza . ?u rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q23962542
P735
Q82799
USER
Which name is that person known by ?
(Q23962542,P735,c(Q82799))
action filter_type
action find
entity Q23962542
relation P735
type Q82799
['Q23962542', 'P735', {'concept': 'Q82799'}]
SELECT DISTINCT ?u WHERE { resource:Q23962542 property:P735 ?u . ?u rdf:type ontology:Q82799 }
Franciner Macário Diniz
action filter_type
action find
entity Franciner Macário Diniz
relation given name
type name
['Franciner Macário Diniz', 'given name', {'concept': 'name'}]
SELECT DISTINCT ?u WHERE { resource:Franciner_Macário_Diniz property:given_name ?u . ?u rdf:type ontology:name }
[]
name
Q23962805
SYSTEM
Franciner
Q23962805
(Q23962542,P735,c(Q82799))
action filter_type
action find
entity Q23962542
relation P735
type Q82799
That person is known as [ANSWER]
['Q23962542', 'P735', {'concept': 'Q82799'}]
SELECT DISTINCT ?u WHERE { resource:Q23962542 property:P735 ?u . ?u rdf:type ontology:Q82799 }
Franciner
That person is known as Franciner
Franciner
action filter_type
action find
entity Franciner Macário Diniz
relation given name
type name
['Franciner Macário Diniz', 'given name', {'concept': 'name'}]
SELECT DISTINCT ?u WHERE { resource:Franciner_Macário_Diniz property:given_name ?u . ?u rdf:type ontology:name }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q18922664 Q23962542
P734 P735
Q82799
USER
Which names are forename of Franciner Macário Diniz or have the surname René Koch ?
OR((Q23962542,P735,c(Q82799)), (Q18922664,P734,c(Q82799)))
action filter_type
action union
action find
entity Q23962542
relation P735
action find
entity Q18922664
relation P734
type Q82799
{'OR': [['Q23962542', 'P735', {'concept': 'Q82799'}], ['Q18922664', 'P734', {'concept': 'Q82799'}]]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q82799 . { { resource:Q18922664 property:P734 ?p } UNION { resource:Q23962542 property:P735 ?p } } }
René Koch Franciner Macário Diniz
action filter_type
action union
action find
entity Franciner Macário Diniz
relation given name
action find
entity René Koch
relation family name
type name
{'OR': [['Franciner Macário Diniz', 'given name', {'concept': 'name'}], ['René Koch', 'family name', {'concept': 'name'}]]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:name . { { resource:René_Koch property:family_name ?p } UNION { resource:Franciner_Macário_Diniz property:given_name ?p } } }
[]
name
Q23962805 Q1348074
SYSTEM
Franciner, Koch
Q23962805 Q1348074
OR((Q23962542,P735,c(Q82799)), (Q18922664,P734,c(Q82799)))
action filter_type
action union
action find
entity Q23962542
relation P735
action find
entity Q18922664
relation P734
type Q82799
[ANSWERS] are forename of Franciner Macário Diniz or have the surname René Koch
{'OR': [['Q23962542', 'P735', {'concept': 'Q82799'}], ['Q18922664', 'P734', {'concept': 'Q82799'}]]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q82799 . { { resource:Q18922664 property:P734 ?p } UNION { resource:Q23962542 property:P735 ?p } } }
Franciner Koch
Franciner and Koch are forename of Franciner Macário Diniz or have the surname René Koch
Franciner Koch
action filter_type
action union
action find
entity Franciner Macário Diniz
relation given name
action find
entity René Koch
relation family name
type name
{'OR': [['Franciner Macário Diniz', 'given name', {'concept': 'name'}], ['René Koch', 'family name', {'concept': 'name'}]]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:name . { { resource:René_Koch property:family_name ?p } UNION { resource:Franciner_Macário_Diniz property:given_name ?p } } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q2977302 Q15402080
P27
Q15617994
USER
Which administrative territories are the native countriesof Elaine Gomes or Claude Douce ?
OR((Q15402080,P27,c(Q15617994)), (Q2977302,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q15402080
relation P27
action find
entity Q2977302
relation P27
type Q15617994
{'OR': [['Q15402080', 'P27', {'concept': 'Q15617994'}], ['Q2977302', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?q WHERE { { VALUES ( ?w ) { ( resource:Q15402080 ) ( resource:Q2977302 ) } . ?w property:P27 ?q } . ?q rdf:type ontology:Q15617994 }
Claude Douce Elaine Gomes
action filter_type
action union
action find
entity Elaine Gomes
relation country of citizenship
action find
entity Claude Douce
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Elaine Gomes', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Claude Douce', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { VALUES ( ?w ) { ( resource:Elaine_Gomes ) ( resource:Claude_Douce ) } . ?w property:country_of_citizenship ?q } . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q155 Q142
SYSTEM
Brazil, France
Q155 Q142
OR((Q15402080,P27,c(Q15617994)), (Q2977302,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q15402080
relation P27
action find
entity Q2977302
relation P27
type Q15617994
[ANSWERS] are the native countriesof Elaine Gomes or Claude Douce
{'OR': [['Q15402080', 'P27', {'concept': 'Q15617994'}], ['Q2977302', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?q WHERE { { VALUES ( ?w ) { ( resource:Q15402080 ) ( resource:Q2977302 ) } . ?w property:P27 ?q } . ?q rdf:type ontology:Q15617994 }
Brazil France
Brazil and France are the native countriesof Elaine Gomes or Claude Douce
Brazil France
action filter_type
action union
action find
entity Elaine Gomes
relation country of citizenship
action find
entity Claude Douce
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Elaine Gomes', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Claude Douce', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { VALUES ( ?w ) { ( resource:Elaine_Gomes ) ( resource:Claude_Douce ) } . ?w property:country_of_citizenship ?q } . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P559
Q56061 Q628179 Q728937
USER
Which administrative territories are the terminus for min number of trails or railroad lines ?
(c(Q628179)|c(Q728937),P559,c(Q56061))
action argmin
action union
action find_reverse_tuple_counts
relation P559
type Q56061
type Q628179
action find_reverse_tuple_counts
relation P559
type Q56061
type Q728937
[[{'concept': 'Q628179'}, {'concept': 'Q728937'}], 'P559', {'concept': 'Q56061'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( MIN ( ?c ) AS ?s ) { SELECT DISTINCT ?e ( COUNT ( ?a ) AS ?c ) WHERE { ?a rdf:type ?x . VALUES ( ?x ) { ( ontology:Q628179 ) ( ontology:Q728937 ) } } GROUP BY ?e } } . { SELECT DISTINCT ?j ( COUNT ( ?r ) AS ?n ) WHERE { { ?r rdf:type ontology:Q628179 . ?j rdf:type ontology:Q56061 . ?r property:P559 ?j } UNION { ?r property:P559 ?j . ?j rdf:type ontology:Q56061 . ?r rdf:type ontology:Q728937 } } GROUP BY ?j } . FILTER ( ?n = ?s ) }
action argmin
action union
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type trail
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type railroad line
[[{'concept': 'trail'}, {'concept': 'railroad line'}], 'terminus', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( MIN ( ?c ) AS ?s ) { SELECT DISTINCT ?e ( COUNT ( ?a ) AS ?c ) WHERE { ?a rdf:type ?x . VALUES ( ?x ) { ( ontology:trail ) ( ontology:railroad_line ) } } GROUP BY ?e } } . { SELECT DISTINCT ?j ( COUNT ( ?r ) AS ?n ) WHERE { { ?r rdf:type ontology:trail . ?j rdf:type ontology:administrative_territorial_entity . ?r property:terminus ?j } UNION { ?r property:terminus ?j . ?j rdf:type ontology:administrative_territorial_entity . ?r rdf:type ontology:railroad_line } } GROUP BY ?j } . FILTER ( ?n = ?s ) }
[]
administrative territorial entity trail railroad line
Q1085 Q649 Q65
SYSTEM
Prague, Moscow, Los Angeles
Q938820 Q9832 Q3051477 Q1020217 Q11851639 Q23436 Q3812238 Q69639 Q1017610 Q10084 Q375314 Q12439 Q7567083 Q541055 Q723164 Q4825403 Q575557 Q985313 Q23311 Q687333 Q932159 Q49550 Q38511 Q3469728 Q185453 Q588804 Q3001 Q5902931 Q723372 Q167155 Q2272 Q986100 Q6023 Q7811572 Q7651719 Q171357 Q134620 Q956 Q959 Q992420 Q556989 Q1011611 Q649 Q2065223 Q211059 Q42159 Q1009428 Q18808 Q1011221 Q7050868 Q24826 Q6509 Q671348 Q5477618 Q5032535 Q4093 Q4356873 Q11839080 Q585 Q987170 Q35433 Q1763 Q1449 Q66208 Q2796951 Q848909 Q1420136 Q754868 Q687945 Q125080 Q782155 Q12714367 Q1757 Q36989 Q49218 Q990112 Q100 Q2734845 Q6820370 Q40840 Q542966 Q1616042 Q643944 Q756103 Q25330 Q3992 Q190847 Q1318695 Q2073801 Q1759693 Q369947 Q84 Q2300663 Q2132 Q2703030 Q2133814 Q794802 Q7944369 Q646784 Q79499 Q184383 Q6275457 Q263954 Q10561690 Q12892 Q6816 Q1735 Q466054 Q953081 Q180717 Q2086787 Q79804 Q895452 Q40325 Q1229951 Q953719 Q580016 Q2290 Q244289 Q588417 Q634172 Q146659 Q522362 Q790938 Q530309 Q65 Q1085
(c(Q628179)|c(Q728937),P559,c(Q56061))
action argmin
action union
action find_reverse_tuple_counts
relation P559
type Q56061
type Q628179
action find_reverse_tuple_counts
relation P559
type Q56061
type Q728937
[ANSWERS] are the terminus for min number of trails or railroad lines
[[{'concept': 'Q628179'}, {'concept': 'Q728937'}], 'P559', {'concept': 'Q56061'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( MIN ( ?c ) AS ?s ) { SELECT DISTINCT ?e ( COUNT ( ?a ) AS ?c ) WHERE { ?a rdf:type ?x . VALUES ( ?x ) { ( ontology:Q628179 ) ( ontology:Q728937 ) } } GROUP BY ?e } } . { SELECT DISTINCT ?j ( COUNT ( ?r ) AS ?n ) WHERE { { ?r rdf:type ontology:Q628179 . ?j rdf:type ontology:Q56061 . ?r property:P559 ?j } UNION { ?r property:P559 ?j . ?j rdf:type ontology:Q56061 . ?r rdf:type ontology:Q728937 } } GROUP BY ?j } . FILTER ( ?n = ?s ) }
Virrat Eindhoven Ellewoutsdijk Minehead Annalankangas Edinburgh Bronygarth Göschenen Horgoš Vlissingen Folkestone Detroit South Drain Oijen Pop Austrepollen Grand Tower Ingleton City of London Middleton-by-Wirksworth Hart Maó-Mahón Turku Salford Quays Multan Badrinath Paramaribo Horda, Norway Narva-Jõesuu Kalamazoo Skien Ridder Lapua Tobermory, Ontario Svartnes Kecskemét Jyväskylä Beijing Vladivostok Fjærland Ankeny Portpatrick Moscow Port Grimaud Jõhvi Hanam Drymen Pyongyang Kincardine Nordrepollen Liverpool Burgas Worthing Frafjord Cann River Glasgow Mariehäll Akdere, Silifke Oslo Inčukalns Saint-Rhémy-en-Bosses Murmansk Genoa Frutigen Cumberland Gap Fort William Herøya Cumberland San Bernardino Vaasa Jarrow Granvin Helsinki Pardubice Rochester Littlehampton Boston Henley-in-Arden Merritton, Ontario Tampere Angren, Uzbekistan Hessle Asaluyeh Lewes Trenton Liège Alexandroupoli Apoera Helmsley South Boston El Cajon London Gaylord Victoria Kilsby St Nicholas-at-Wade Otira Värpinge Moffat Helena Zeebrugge Jong, Norway Afobaka Lilla Alby Antwerp Ulan-Ude Innsbruck Mahdia Orivesi Sousse Manitou Springs Sitka Bowling, West Dunbartonshire Springfield L'Estaque South Haven Albina Porsgrunn Athis-Mons Sewell, Chile Banihal Clapham Bad Säckingen Aviemore Karkkila Los Angeles Prague
Prague, Moscow and Los Angeles are the terminus for min number of trails or railroad lines
Prague Moscow Los Angeles
action argmin
action union
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type trail
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type railroad line
[[{'concept': 'trail'}, {'concept': 'railroad line'}], 'terminus', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( MIN ( ?c ) AS ?s ) { SELECT DISTINCT ?e ( COUNT ( ?a ) AS ?c ) WHERE { ?a rdf:type ?x . VALUES ( ?x ) { ( ontology:trail ) ( ontology:railroad_line ) } } GROUP BY ?e } } . { SELECT DISTINCT ?j ( COUNT ( ?r ) AS ?n ) WHERE { { ?r rdf:type ontology:trail . ?j rdf:type ontology:administrative_territorial_entity . ?r property:terminus ?j } UNION { ?r property:terminus ?j . ?j rdf:type ontology:administrative_territorial_entity . ?r rdf:type ontology:railroad_line } } GROUP BY ?j } . FILTER ( ?n = ?s ) }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q1085 Q649 Q65
P159
Q4830453
USER
Which business enterprises have headquarters located at Prague, Moscow and Los Angeles ?
(c(Q4830453),P159,Q1085) (c(Q4830453),P159,Q649) (c(Q4830453),P159,Q65)
action union
action filter_type
action find_reverse
entity Q1085
relation P159
type Q4830453
action filter_type
action find_reverse
entity Q649
relation P159
type Q4830453
action filter_type
action find_reverse
entity Q65
relation P159
type Q4830453
[{'concept': 'Q4830453'}, 'P159', 'Q1085'] [{'concept': 'Q4830453'}, 'P159', 'Q649'] [{'concept': 'Q4830453'}, 'P159', 'Q65']
SELECT DISTINCT ?n WHERE { VALUES ( ?k ) { ( resource:Q1085 ) ( resource:Q649 ) } . ?n property:P159 ?k }
Prague Moscow Los Angeles
action union
action filter_type
action find_reverse
entity Prague
relation headquarters location
type business enterprise
action filter_type
action find_reverse
entity Moscow
relation headquarters location
type business enterprise
action filter_type
action find_reverse
entity Los Angeles
relation headquarters location
type business enterprise
[{'concept': 'business enterprise'}, 'headquarters location', 'Prague'] [{'concept': 'business enterprise'}, 'headquarters location', 'Moscow'] [{'concept': 'business enterprise'}, 'headquarters location', 'Los Angeles']
SELECT DISTINCT ?n WHERE { VALUES ( ?k ) { ( resource:Prague ) ( resource:Moscow ) } . ?n property:headquarters_location ?k }
[]
business enterprise
Q980831 Q194009 Q333780
SYSTEM
Oboronprom, Tupolev, Yakovlev
Q977633 Q40996 Q336717 Q27143 Q36059 Q381100 Q1382659 Q871174 Q1581385 Q7969414 Q4347778 Q4398011 Q918703 Q3651046 Q4537566 Q4393272 Q4173770 Q20854272 Q333780 Q898825 Q489943 Q574625 Q19907586 Q749928 Q194009 Q23807450 Q980831 Q4454118 Q241828 Q188508 Q1550653 Q708290 Q7060570 Q17065460 Q6544704 Q6772146 Q16927622 Q23681826 Q21071125 Q16843335 Q19880266 Q4851430 Q874088 Q196253 Q304769 Q519560 Q15040669 Q5559258 Q6315705 Q641746 Q6927533 Q157906 Q23682345 Q19872063 Q17089553 Q1140873 Q23671513 Q6817757 Q166419 Q3360013 Q1149935
(c(Q4830453),P159,Q1085) (c(Q4830453),P159,Q649) (c(Q4830453),P159,Q65)
action union
action filter_type
action find_reverse
entity Q1085
relation P159
type Q4830453
action filter_type
action find_reverse
entity Q649
relation P159
type Q4830453
action filter_type
action find_reverse
entity Q65
relation P159
type Q4830453
[ANSWERS] have headquarters located at Prague, Moscow and Los Angeles
[{'concept': 'Q4830453'}, 'P159', 'Q1085'] [{'concept': 'Q4830453'}, 'P159', 'Q649'] [{'concept': 'Q4830453'}, 'P159', 'Q65']
SELECT DISTINCT ?n WHERE { VALUES ( ?k ) { ( resource:Q1085 ) ( resource:Q649 ) } . ?n property:P159 ?k }
Radio Farda Praga ČD Cargo Avia MTX Dopravní podnik hlavního města Prahy Evropa 2 Československé státní dráhy U Fleků Warhorse Studios Pegas Touristik Ruselectronics Hit FM Silver Rain Radio Yamaltransstroy Renova Group Egorov Puginsky Afanasiev & Partners Match TV Yakovlev Mil Moscow Helicopter Plant Kaspersky Lab NTV ABS Electro Echo of Moscow Tupolev Mosigra Oboronprom TV Roskosmos Kamov Mikoyan Soviet Railways Cartoon Network Norton & Wallis Papa Cristo's Namecheap Marmol Radziner CitySourced Chinese Laundry TravelStore BloomNation Hodgetts + Fung Ballantine Brewery Paul Hastings Hughes Aircraft Company ARCO North American Aviation Westinghouse Aviation Gas Turbine Division Gibson, Dunn & Crutcher JustFab Hallmark Channel Moxon & Kobrin Boomerang Rampage Clothing Company Allied Wallet TeleSign KTLA NYX Cosmetics Meomi Design Fox Broadcasting Company Pabst Brewing Company WWE Studios
Oboronprom, Tupolev and Yakovlev have headquarters located at Prague, Moscow and Los Angeles
Oboronprom Tupolev Yakovlev
action union
action filter_type
action find_reverse
entity Prague
relation headquarters location
type business enterprise
action filter_type
action find_reverse
entity Moscow
relation headquarters location
type business enterprise
action filter_type
action find_reverse
entity Los Angeles
relation headquarters location
type business enterprise
[{'concept': 'business enterprise'}, 'headquarters location', 'Prague'] [{'concept': 'business enterprise'}, 'headquarters location', 'Moscow'] [{'concept': 'business enterprise'}, 'headquarters location', 'Los Angeles']
SELECT DISTINCT ?n WHERE { VALUES ( ?k ) { ( resource:Prague ) ( resource:Moscow ) } . ?n property:headquarters_location ?k }
[]
Clarification
Simple Question|Single Entity|Indirect
Q333780
P740
Q56061
USER
Which administrative territory is the location of formation of that business enterprise ?
(Q333780,P740,c(Q56061))
action filter_type
action find
entity Q333780
relation P740
type Q56061
['Q333780', 'P740', {'concept': 'Q56061'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q56061 . resource:Q333780 property:P740 ?g }
Yakovlev
action filter_type
action find
entity Yakovlev
relation location of formation
type administrative territorial entity
['Yakovlev', 'location of formation', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:administrative_territorial_entity . resource:Yakovlev property:location_of_formation ?g }
[]
administrative territorial entity
Clarification for simple ques.
Q194009
SYSTEM
Did you mean Tupolev ?
Q980831 Q194009 Q333780
(Q980831,P740,c(Q56061)) (Q194009,P740,c(Q56061)) (Q333780,P740,c(Q56061))
[ANSWER]
['Q980831', 'P740', {'concept': 'Q56061'}] ['Q194009', 'P740', {'concept': 'Q56061'}] ['Q333780', 'P740', {'concept': 'Q56061'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q56061 . resource:Q333780 property:P740 ?g }
Oboronprom Tupolev Yakovlev
Did you mean Tupolev ?
Tupolev
['Oboronprom', 'location of formation', {'concept': 'administrative territorial entity'}] ['Tupolev', 'location of formation', {'concept': 'administrative territorial entity'}] ['Yakovlev', 'location of formation', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:administrative_territorial_entity . resource:Yakovlev property:location_of_formation ?g }
[]
Simple Question (Coreferenced)
USER
No, I meant Yakovlev. Could you tell me the answer for that?
(Q333780,P740,c(Q56061))
Q333780
['Q333780', 'P740', {'concept': 'Q56061'}]
['Yakovlev', 'location of formation', {'concept': 'administrative territorial entity'}]
[]
Q649
SYSTEM
Moscow
Q649
(Q333780,P740,c(Q56061))
action filter_type
action find
entity Q333780
relation P740
type Q56061
[ANSWER] is the location of formation of that business enterprise
['Q333780', 'P740', {'concept': 'Q56061'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q56061 . resource:Q333780 property:P740 ?g }
Moscow
Moscow is the location of formation of that business enterprise
Moscow
action filter_type
action find
entity Yakovlev
relation location of formation
type administrative territorial entity
['Yakovlev', 'location of formation', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:administrative_territorial_entity . resource:Yakovlev property:location_of_formation ?g }
[]