Simple Question (Direct)
Simple Question
Q11946781
P102
Q7278
USER
Which political party is Salvador Morera i Tanyà a member of ?
(Q11946781,P102,c(Q7278))
action filter_type
action find
entity Q11946781
relation P102
type Q7278
['Q11946781', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?b WHERE { resource:Q11946781 property:P102 ?b . ?b rdf:type ontology:Q7278 }
Salvador Morera i Tanyà
action filter_type
action find
entity Salvador Morera i Tanyà
relation member of political party
type political party
['Salvador Morera i Tanyà', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?b WHERE { resource:Salvador_Morera_i_Tanyà property:member_of_political_party ?b . ?b rdf:type ontology:political_party }
[]
political party
Q150068
SYSTEM
Republican Left of Catalonia
Q150068
(Q11946781,P102,c(Q7278))
action filter_type
action find
entity Q11946781
relation P102
type Q7278
The [ANSWER] is Salvador Morera i Tanyà a member of
['Q11946781', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?b WHERE { resource:Q11946781 property:P102 ?b . ?b rdf:type ontology:Q7278 }
Republican Left of Catalonia
The Republican Left of Catalonia is Salvador Morera i Tanyà a member of
Republican Left of Catalonia
action filter_type
action find
entity Salvador Morera i Tanyà
relation member of political party
type political party
['Salvador Morera i Tanyà', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?b WHERE { resource:Salvador_Morera_i_Tanyà property:member_of_political_party ?b . ?b rdf:type ontology:political_party }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q11946781
P19
Q1048835
USER
Which political territory was that person born in ?
(Q150068,P19,c(Q1048835))
action filter_type
action find
entity Q11946781
relation P19
type Q1048835
['Q150068', 'P19', {'concept': 'Q1048835'}]
SELECT DISTINCT ?l WHERE { resource:Q11946781 property:P19 ?l . ?l rdf:type ontology:Q1048835 }
Salvador Morera i Tanyà
action filter_type
action find
entity Salvador Morera i Tanyà
relation place of birth
type political territorial entity
['Republican Left of Catalonia', 'place of birth', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Salvador_Morera_i_Tanyà property:place_of_birth ?l . ?l rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q13850
SYSTEM
Taradell
Q13850
(Q150068,P19,c(Q1048835))
action filter_type
action find
entity Q11946781
relation P19
type Q1048835
That person was born to [ANSWER]
['Q150068', 'P19', {'concept': 'Q1048835'}]
SELECT DISTINCT ?l WHERE { resource:Q11946781 property:P19 ?l . ?l rdf:type ontology:Q1048835 }
Taradell
That person was born to Taradell
Taradell
action filter_type
action find
entity Salvador Morera i Tanyà
relation place of birth
type political territorial entity
['Republican Left of Catalonia', 'place of birth', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Salvador_Morera_i_Tanyà property:place_of_birth ?l . ?l rdf:type ontology:political_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q13850 Q554698
P20
Q502895
USER
Did Joan Segarra die in that political territory ?
(Q554698,P20,Q13850)
action is_in
entity Q13850
action find
entity Q554698
relation P20
['Q554698', 'P20', 'Q13850']
ASK WHERE { resource:Q554698 property:P20 resource:Q13850 }
Taradell Joan Segarra
action is_in
entity Taradell
action find
entity Joan Segarra
relation place of death
['Joan Segarra', 'place of death', 'Taradell']
ASK WHERE { resource:Joan_Segarra property:place_of_death resource:Taradell }
[]
common name
SYSTEM
YES
(Q554698,P20,Q13850)
action is_in
entity Q13850
action find
entity Q554698
relation P20
[ANSWER]
['Q554698', 'P20', 'Q13850']
ASK WHERE { resource:Q554698 property:P20 resource:Q13850 }
Yes
action is_in
entity Taradell
action find
entity Joan Segarra
relation place of death
['Joan Segarra', 'place of death', 'Taradell']
ASK WHERE { resource:Joan_Segarra property:place_of_death resource:Taradell }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q150068
P102
Q502895
USER
How many people are members of Republican Left of Catalonia ?
(c(Q502895),P102,Q150068)
action count
action filter_type
action find_reverse
entity Q150068
relation P102
type Q502895
[{'concept': 'Q502895'}, 'P102', 'Q150068']
SELECT DISTINCT ( COUNT ( ?l ) AS ?x ) WHERE { ?l rdf:type ontology:Q502895 . ?l property:P102 resource:Q150068 }
Republican Left of Catalonia
action count
action filter_type
action find_reverse
entity Republican Left of Catalonia
relation member of political party
type common name
[{'concept': 'common name'}, 'member of political party', 'Republican Left of Catalonia']
SELECT DISTINCT ( COUNT ( ?l ) AS ?x ) WHERE { ?l rdf:type ontology:common_name . ?l property:member_of_political_party resource:Republican_Left_of_Catalonia }
[]
common name
SYSTEM
328
Q19291144 Q19997681 Q11951592 Q7981 Q3417229 Q11940925 Q17301792 Q19300475 Q11038000 Q17032438 Q19301482 Q11905528 Q9092946 Q11033565 Q20004299 Q8005 Q16182018 Q11928805 Q6072265 Q731289 Q595492 Q9098373 Q2517413 Q24323203 Q11940524 Q4894204 Q17034029 Q3889644 Q11927290 Q8196945 Q11906055 Q11928875 Q11928879 Q5556251 Q17205115 Q3754732 Q16169026 Q22076870 Q19299745 Q16189679 Q11926178 Q11921860 Q10745532 Q19300331 Q19997671 Q20005627 Q11928352 Q4893047 Q19300904 Q19301601 Q11928881 Q19997647 Q19299776 Q4895294 Q11928895 Q11927793 Q11928334 Q11912413 Q5760172 Q19299683 Q11912404 Q1027426 Q15614015 Q3813658 Q21480157 Q957197 Q9012032 Q9012034 Q11955050 Q11928952 Q6752432 Q11909334 Q23927524 Q11928301 Q19300356 Q9009480 Q9070058 Q11905230 Q16051046 Q11933583 Q11933580 Q19301667 Q9012003 Q3041132 Q11946781 Q8962225 Q17047272 Q9011877 Q950749 Q17094149 Q9073262 Q11939524 Q19290886 Q19300172 Q19300174 Q11928907 Q15389466 Q11698858 Q21479962 Q8962213 Q6112198 Q17033432 Q4895642 Q11922720 Q25931441 Q16976913 Q21791466 Q20005585 Q11919630 Q19291029 Q14076596 Q11912390 Q22337939 Q20006418 Q19301143 Q950716 Q23927594 Q21791446 Q17300759 Q19300076 Q19301153 Q20876503 Q14077096 Q768630 Q9031301 Q19289104 Q11688216 Q823149 Q20876620 Q5940871 Q3325328 Q11918063 Q19300020 Q21787611 Q16943553 Q2581521 Q19289974 Q11912368 Q19300031 Q11928687 Q20005836 Q9011965 Q9011963 Q4893910 Q1806213 Q19290116 Q19998153 Q20004651 Q2827349 Q14073973 Q11905503 Q4892821 Q17030473 Q560022 Q9033514 Q8191917 Q16943500 Q2554859 Q20003378 Q19301875 Q13478535 Q16187977 Q544187 Q20003518 Q11927618 Q19290998 Q11928070 Q20875378 Q14040536 Q11941010 Q11935488 Q11927601 Q9013219 Q20101678 Q11922818 Q11945544 Q19302032 Q11928616 Q3055462 Q19299901 Q11934946 Q20005765 Q19289866 Q17034676 Q9023266 Q11940931 Q11944663 Q11922836 Q17029508 Q11945524 Q19289873 Q19301814 Q2857084 Q11691313 Q11682494 Q21787549 Q21787544 Q9013049 Q11941076 Q20100565 Q11940900 Q19299942 Q17189216 Q16181078 Q11936990 Q11922863 Q20100556 Q4892936 Q8263597 Q11919451 Q11922875 Q19289836 Q11935595 Q19290648 Q9020872 Q8201093 Q11918894 Q4767484 Q20005656 Q19289626 Q9010544 Q19716313 Q14038593 Q13565473 Q11940947 Q21787539 Q19999367 Q5800329 Q16943464 Q16943467 Q19299995 Q20004976 Q17300811 Q21001459 Q3032581 Q11935254 Q21001283 Q11919365 Q8200129 Q19999191 Q11912492 Q11905836 Q2681411 Q19299855 Q9013330 Q11928737 Q19998073 Q20003265 Q20101696 Q11927936 Q16190078 Q116812 Q15531621 Q11922913 Q1823644 Q17300870 Q11923824 Q11912505 Q605339 Q11037788 Q8201070 Q19300570 Q9072993 Q17148033 Q11927304 Q11927303 Q11927967 Q19300288 Q11917653 Q9013130 Q19290799 Q17036852 Q11904753 Q20005976 Q11927976 Q11927973 Q23447046 Q20876222 Q11695132 Q9011136 Q11924086 Q11927324 Q19290697 Q11927941 Q11928580 Q21789607 Q11935751 Q20875705 Q4894708 Q11924094 Q3320335 Q14087915 Q21707984 Q3327197 Q16190611 Q11935513 Q19301504 Q20005111 Q24326860 Q11955292 Q11955291 Q20006702 Q16174428 Q20006651 Q20006653 Q19301528 Q11944626 Q451357 Q929954 Q4890648 Q2586896 Q19301536 Q11905976 Q593330 Q23832739 Q11920639 Q4893335 Q19299795 Q19300408 Q16163359 Q11931226 Q11928471 Q19289839 Q19257924 Q3080849 Q11905928 Q14041185 Q9058311
(c(Q502895),P102,Q150068)
action count
action filter_type
action find_reverse
entity Q150068
relation P102
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P102', 'Q150068']
SELECT DISTINCT ( COUNT ( ?l ) AS ?x ) WHERE { ?l rdf:type ontology:Q502895 . ?l property:P102 resource:Q150068 }
Ignasi Llorente i Briones Albert Donés i Antequera Teresa Jordà i Roura Lluís Companys Rafael Font Farran Pere Blasi i Maranges Marc Palmés i Giró Josep Maria Esquerda i Segués Josep Abril i Argemí Marina Llansana i Rosich Pere Ferrer i Batlle Andreu Revertés Bonaventura Gassol i Rovira Josep Pi-Sunyer Jordi Cots i Domínguez Josep Tarradellas i Joan Maria Àngels Cabasés i Piqué Josep Mestre i Puig Pere Puig Subinyà Josep Irla i Bosch Pere Coromines i Montanya Ángel Samblancat Josep Dencàs i Puigdollers Carme Vall Clara Patrícia Gomà i Pons Francesc Dalmau i Norat Carmel Mòdol i Bresolí Hèctor López Bofill Jaume Gilabert i Torruella Amadeu Aragay i Davi Antonio Jiménez Jiménez Josep Puig i Pujades Josep Pujol i Capsada August Pi i Sunyer Pere Cerezo i Hernáez Joan Tardà Pere Aragonès i Garcia Salvador Clarà i Pons Jaume Soler i Pastells Josep Companys i Jover Humbert Torres i Barberà Ferran Zulueta i Giberga Marta Rovira i Vergés Josep Cosconera i Carabassa Alba Vergés i Bosch Margarida Fort i Mollar Jordi Ramon i Torres Jordi Ausàs i Coll Lluís-Xavier Gonzàlez i Villaró Pilar Vallugera Josep Quero i Molares Agnès Russiñol i Amat Jesús Prujà i Puig Joan Carretero i Grau Josep Riera i Puntí Joan Lluís Pujol i Font Jordi Morera i Cortines Carles Martí i Massagué Celestí Boada Jaume Fernàndez i Calvet Carles Josep Bonet i Revés Jaume Miravitlles Francesc Ferrer i Gironès Pere Esteve i Abad Jordi Salvador i Duch Pau Padró i Cañellas Joan Puig i Ferreter Joan Puig i Cordon Víctor Torres i Perenya Josep Tomàs i Piera Manuel Balcells i Díaz Biel Majoral Maria Puig Ferrer Jordi Fornas i Prat Josep Espinasa i Massaguer Isidre Grañé i Castanera Roc Boronat i Font Amadeu Colldeforns i Margalló Jusèp Loís Sans Socasau Lluís Capdevila i Vilallonga Lluís Bru i Jardí Ramon Frontera i Bosch Joan Pallarès-Personat Ernest Benach i Pascual Salvador Morera i Tanyà Francesc Vicens i Giralt Nicolau Battestini i Galup Joan Casanelles Martí Barrera i Maresma David Minoves i Llucià Samuel Morera i Ribas Oriol Amorós i March Francesc Marcet i Artigas Jordi Casas-Salat i Fossas Jordi Castells i Guasch Josep Roig i Magrinyà Josep Sagrera Pere Comas i Calvet Xavier Eritja i Ciuró Francesc Subirà i Rocamora Rosa María Bonàs Violant Mascaró i López Josep Huguet i Biosca Francesc Canet i Coma Camí Mendoza i Mercè Jaume Rodri i Febrer Joana Cobo Oriz Marc Sanglas i Alcantarilla Ernest Morató Vigorós Gemma Calvet i Barot Roger Torrent Ramió Carles Gerhard Ottenwälder Ana María Surra Spadea Ramon Fontanet i Serralta Martí Pujol i Casals Joan Casanovas Lluís Puig Martorell Àngel Canosa Fernàndez Francesc Riera i Claramunt Joaquim Aleixandri i Babot Mateu Espinalt i Bajona María Pérez Rodríguez Pere Trias Roca Josep Maria Reguant Melcior Marial i Mundet Marc Aureli Vila i Comaposada Laia Cañigueral Bernat Joan i Marí Gabriel Rufián Jaume Sallés i Figueras Alfred Bosch i Pascual Eduard Layret i Foix Joan Sentís i Nogués Joan Olòriz Serra Josep Romeu i Bisbe Pilar Rahola Benet Tugues i Boliart Carles Bassaganya Serra Joan Tauler i Palomeras Josep Maria Espanya i Sirat Marta Vilalta i Torres Joan Manuel Tresserras i Gaju Joan Lluhí i Vallescà Xavier Vendrell i Segura Francesc Macià i Llussà Carles Vega i Castellví Carmen Calatayud Piquer Josep Maria Garreta i Cusidó Agustí Cerdà i Argent Alfons Quera Carré Andreu Claret i Casadessús Joan Ridao i Martín Xavier Garriga i Cuadras Uriel Bertran i Arrué Miquel Santaló i Parvorell Agustí Alcoberro i Pericay Miquel Pueyo i París Josep Maria Terricabras i Nogueras Jaume Vives i Sobrino Sergi de los Ríos i Martínez Joan Font i Creixems Agustí Castellà Trulls Maria Mercè Roca Joan Lladó i Binimelis Joan Baptista Soler i Bru Frederic Rahola i d'Espona Joaquim Bilbeny i Bosch Sara Alarcón i Postils Dionís Guiteras i Rubio Pere Mestres i Albet Maria Teresa Aragonès i Perales Joan Balart i Armengol Josep Maria Massip Pau Ricomà i Vallhonrat Francesc Ribas i Soberano Ricard Palacin i Soldevila Xavier Jounou i Bajo Josep Jové i Surroca Josep-Lluís Carod-Rovira Joan Loperena i Romà Manuel Cruells i Pifarré Maria Rosa Amorós i Capdevila Antonieta Feliu de Forn Jaume Oliveras i Maristany Llorenç Perramon i Playà Pere Bosch i Cuenca Ramon Viñals i Soler Francesc Senyal i Ferrer Miquel Àngel Estradé i Palau Ricard Burballa i Campabadal Armand Quintana i Panedas Salvador Castells i Mas Antoni Rovira i Virgili Martí Rouret i Callol Hilari Salvadó i Castell Elisenda Pérez Esteve Joaquim Ayats i Bartrina Josep Andreu Pere Vigo i Sallent Meius Ferrés Fluvià Pere Aguilera i Garriga Joan Mora i Adserà Enriqueta Gallinat Cecili Buele i Ramis Miquel dels Sants Cunillera i Rius Francesc Viadiu i Vendrell Julià Fernàndez i Olivares Joan Hortalà Carles Pi i Sunyer Epifani Bellí i Castiel Francesc Xavier Casals i Vidal Antoni Tort i Rocavert Marià Rubió i Tudurí Faustí Llaveries Viladomiu Laureà Dalmau i Pla Antoni Xirau i Palau Elisenda Paluzie i Hernández Anna Simó i Castelló Maria Antònia Freixes i Jover Àngel Serra i Casals Jaume Aiguader i Miró Joan Pons i Garlandí Jordi Solé Ferrando Albert de Quintana de León Pere Curtiada i Ferrer Jordi Martí Deulofeu Ester Capella i Farré David Rodríguez González Ramon Planes i Izabal Josep Maria Poblet i Guarro Joan Romeu i Figueras Justa Goicoechea i Mayayo Miquel Guinart i Castellà Josep Lluís Salvadó i Tenesa Joaquim Amat-Piniella Marcel Coderch i Collell Jordi Badia i Perea Enric Vilanova i Cortassa Anna Murià Encarnació Miquel i Girbau Carme Capdevila i Palau Antoni Dot i Arxer Carme Forcadell Joan Ferret i Navarro Josep Rahola i d'Espona Josep Maria Puigibet Mestre Bernat Valls i Fuster Isabel Nonell i Torras Rosa Colom Bernat Joan Sauret i Garcia Jaume Creus i Ventura Oriol Junqueras i Vies Valerià Miralles i Ortolà Francesc de Paula Jené i Aixalà Heribert Barrera i Costa Enric Canturri i Ramonet Gaspar Armengol i Taló Carme Porta i Abad Salvador Armendares Josep Andreu Domingo Antoni Maria Sbert i Massanet Josep Mascort i Ribot Salvador Albert i Pey Agustí Espinalt i Sanllehí Jaume Magre i Ubach Jaume Magre i Servet Joan Ullés Bascompte Josep Antoni Trabal i Sans Domènec Palet i Barba Josep Fàbrega i Pou Francesc Arnau i Cortina Sergi Sabrià i Benito Albert Alay i Serret Miquel Carrillo i Giralt Joan Ventosa i Roig Joan Vandellós i Jardí Sílvia Monar i Aynier Oriol Lladó i Esteller Natividad Yarza Planas Jaume Serra i Húnter Georgina Oliva i Peña Jaume Nualart i Serrats Fèlix Figueras Aragay Joan Selves i Carner Josep Fornas i Martínez Joan Margall Sastre Marçal Casanovas i Guerri Chakir El Homrani Lesfar Miquel Mayol Gerard Coca i Toledano Joan Puigcercós i Boixassa Lluís Bellera i Juanmartí Martí Jordi i Frigola Josep Bargalló i Valls Pilar Dellunde i Clavé Marian Roca i Munté Pere Ignasi Fages i Mir Lluís Mestres i Capdevila Lluís Sais Puigdemont Xavier Bosch i Garcia Xavier Casademunt i Arimany Vicenç Bernades i Viusà Joan Banyeres i Cateura Teresa Romero i Domingo Teresa Vallverdú i Albornà Pere Màrtir Rossell i Vilar Ramón Nogués Josep Sunyol Frederic Xifré i Masferrer Jordi Portabella Àngel Colom i Colom Pere Mias i Codina Antoni Soy i Casals Jordi Carbonell i de Ballester Andreu Bosch i Rodoreda Esperança Marí Mayans Marta Cid i Pañella Joan Bancells i Xiberta Josep Grau i Jassans Elisenda Albertí i Casas Laura Vilagrà i Pons Josep Bordas de la Cuesta Antoni Vilalta i Vidal Josep Folch i Folch Francesc Farreras i Duran Antonio Puigvert Gorro Josep Maria Freixanet i Mayans Pere Bascompte i Carbonell
328
action count
action filter_type
action find_reverse
entity Republican Left of Catalonia
relation member of political party
type common name
[{'concept': 'common name'}, 'member of political party', 'Republican Left of Catalonia']
SELECT DISTINCT ( COUNT ( ?l ) AS ?x ) WHERE { ?l rdf:type ontology:common_name . ?l property:member_of_political_party resource:Republican_Left_of_Catalonia }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q216082
P488
Q502895
USER
Who was the chair of Australian Labor Party ?
(Q216082,P488,c(Q502895))
action filter_type
action find
entity Q216082
relation P488
type Q502895
['Q216082', 'P488', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { resource:Q216082 property:P488 ?z . ?z rdf:type ontology:Q502895 }
Australian Labor Party
action filter_type
action find
entity Australian Labor Party
relation chairperson
type common name
['Australian Labor Party', 'chairperson', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { resource:Australian_Labor_Party property:chairperson ?z . ?z rdf:type ontology:common_name }
[]
common name
Q4910865
SYSTEM
Bill Shorten
Q4910865
(Q216082,P488,c(Q502895))
action filter_type
action find
entity Q216082
relation P488
type Q502895
The chair of Australian Labor Party was Sir [ANSWER]
['Q216082', 'P488', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { resource:Q216082 property:P488 ?z . ?z rdf:type ontology:Q502895 }
Bill Shorten
The chair of Australian Labor Party was Sir Bill Shorten
Bill Shorten
action filter_type
action find
entity Australian Labor Party
relation chairperson
type common name
['Australian Labor Party', 'chairperson', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { resource:Australian_Labor_Party property:chairperson ?z . ?z rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q4910865 Q1267256
P488
Q7210356
USER
Does that person serve as a chairman for Party of National Unity ?
(Q1267256,P488,Q4910865)
action is_in
entity Q1267256
action find
entity Q4910865
relation P488
['Q1267256', 'P488', 'Q4910865']
ASK WHERE { resource:Q4910865 property:P488 resource:Q1267256 }
Bill Shorten Party of National Unity
action is_in
entity Party of National Unity
action find
entity Bill Shorten
relation chairperson
['Party of National Unity', 'chairperson', 'Bill Shorten']
ASK WHERE { resource:Bill_Shorten property:chairperson resource:Party_of_National_Unity }
[]
political organization
SYSTEM
NO
(Q1267256,P488,Q4910865)
action is_in
entity Q1267256
action find
entity Q4910865
relation P488
[ANSWER]
['Q1267256', 'P488', 'Q4910865']
ASK WHERE { resource:Q4910865 property:P488 resource:Q1267256 }
No
action is_in
entity Party of National Unity
action find
entity Bill Shorten
relation chairperson
['Party of National Unity', 'chairperson', 'Bill Shorten']
ASK WHERE { resource:Bill_Shorten property:chairperson resource:Party_of_National_Unity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q499914 Q13850
P17
Q15617994
USER
Which administrative territories do Taradell or Arlesheim Cathedral belong to ?
OR((Q13850,P17,c(Q15617994)), (Q499914,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q13850
relation P17
action find
entity Q499914
relation P17
type Q15617994
{'OR': [['Q13850', 'P17', {'concept': 'Q15617994'}], ['Q499914', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?v WHERE { { VALUES ( ?c ) { ( resource:Q13850 ) ( resource:Q499914 ) } . ?c property:P17 ?v } . ?v rdf:type ontology:Q15617994 }
Arlesheim Cathedral Taradell
action filter_type
action union
action find
entity Taradell
relation country
action find
entity Arlesheim Cathedral
relation country
type designation for an administrative territorial entity
{'OR': [['Taradell', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Arlesheim Cathedral', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { { VALUES ( ?c ) { ( resource:Taradell ) ( resource:Arlesheim_Cathedral ) } . ?c property:country ?v } . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29 Q39
SYSTEM
Spain, Switzerland
Q29 Q39
OR((Q13850,P17,c(Q15617994)), (Q499914,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q13850
relation P17
action find
entity Q499914
relation P17
type Q15617994
Taradell or Arlesheim Cathedral belong to [ANSWERS]
{'OR': [['Q13850', 'P17', {'concept': 'Q15617994'}], ['Q499914', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?v WHERE { { VALUES ( ?c ) { ( resource:Q13850 ) ( resource:Q499914 ) } . ?c property:P17 ?v } . ?v rdf:type ontology:Q15617994 }
Spain Switzerland
Taradell or Arlesheim Cathedral belong to Spain and Switzerland
Spain Switzerland
action filter_type
action union
action find
entity Taradell
relation country
action find
entity Arlesheim Cathedral
relation country
type designation for an administrative territorial entity
{'OR': [['Taradell', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Arlesheim Cathedral', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { { VALUES ( ?c ) { ( resource:Taradell ) ( resource:Arlesheim_Cathedral ) } . ?c property:country ?v } . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P530
Q1048835 Q15617994
USER
How many political territories and administrative territories have diplomatic relationships with that administrative territory ?
(Q39,P530,c(Q1048835)) (Q39,P530,c(Q15617994)) (Q29,P530,c(Q1048835)) (Q29,P530,c(Q15617994)) (Q39,P530,c(Q1048835)) (Q39,P530,c(Q15617994))
['Q39', 'P530', {'concept': 'Q1048835'}] ['Q39', 'P530', {'concept': 'Q15617994'}] ['Q29', 'P530', {'concept': 'Q1048835'}] ['Q29', 'P530', {'concept': 'Q15617994'}] ['Q39', 'P530', {'concept': 'Q1048835'}] ['Q39', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q2373348 property:P530 ?z } UNION { resource:Q2373348 property:P530 ?y } UNION { resource:Q20266861 property:P530 ?z } UNION { resource:Q20266861 property:P530 ?y } UNION { resource:Q2373348 property:P530 ?z } UNION { resource:Q2373348 property:P530 ?y } } . ?z rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q15617994 }
['Switzerland', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Switzerland', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Spain', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Spain', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Switzerland', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Switzerland', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Switzerland property:diplomatic_relation ?z } UNION { resource:Switzerland property:diplomatic_relation ?y } UNION { resource:Spain property:diplomatic_relation ?z } UNION { resource:Spain property:diplomatic_relation ?y } UNION { resource:Switzerland property:diplomatic_relation ?z } UNION { resource:Switzerland property:diplomatic_relation ?y } } . ?z rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
political territorial entity designation for an administrative territorial entity
Quantitative|Count|Mult. entity type|Clarification
Q29
SYSTEM
Did you mean Spain ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q2373348 property:P530 ?z } UNION { resource:Q2373348 property:P530 ?y } UNION { resource:Q20266861 property:P530 ?z } UNION { resource:Q20266861 property:P530 ?y } UNION { resource:Q2373348 property:P530 ?z } UNION { resource:Q2373348 property:P530 ?y } } . ?z rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q15617994 }
Did you mean Spain ?
Spain
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Switzerland property:diplomatic_relation ?z } UNION { resource:Switzerland property:diplomatic_relation ?y } UNION { resource:Spain property:diplomatic_relation ?z } UNION { resource:Spain property:diplomatic_relation ?y } UNION { resource:Switzerland property:diplomatic_relation ?z } UNION { resource:Switzerland property:diplomatic_relation ?y } } . ?z rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Switzerland. Could you tell me the answer for that?
(Q39,P530,c(Q1048835)) (Q39,P530,c(Q15617994)) (Q29,P530,c(Q1048835)) (Q29,P530,c(Q15617994)) (Q39,P530,c(Q1048835)) (Q39,P530,c(Q15617994))
Q39
['Q39', 'P530', {'concept': 'Q1048835'}] ['Q39', 'P530', {'concept': 'Q15617994'}] ['Q29', 'P530', {'concept': 'Q1048835'}] ['Q29', 'P530', {'concept': 'Q15617994'}] ['Q39', 'P530', {'concept': 'Q1048835'}] ['Q39', 'P530', {'concept': 'Q15617994'}]
['Switzerland', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Switzerland', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Spain', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Spain', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Switzerland', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Switzerland', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
3 political territories and 3 administrative territories
Q183 Q347 Q408 Q16 Q252 Q38
(Q39,P530,c(Q1048835)) (Q39,P530,c(Q15617994)) (Q29,P530,c(Q1048835)) (Q29,P530,c(Q15617994)) (Q39,P530,c(Q1048835)) (Q39,P530,c(Q15617994))
[ANSWER]
['Q39', 'P530', {'concept': 'Q1048835'}] ['Q39', 'P530', {'concept': 'Q15617994'}] ['Q29', 'P530', {'concept': 'Q1048835'}] ['Q29', 'P530', {'concept': 'Q15617994'}] ['Q39', 'P530', {'concept': 'Q1048835'}] ['Q39', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q2373348 property:P530 ?z } UNION { resource:Q2373348 property:P530 ?y } UNION { resource:Q20266861 property:P530 ?z } UNION { resource:Q20266861 property:P530 ?y } UNION { resource:Q2373348 property:P530 ?z } UNION { resource:Q2373348 property:P530 ?y } } . ?z rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q15617994 }
Germany Liechtenstein Australia Canada Indonesia Italy
3 political territories and 3 administrative territories
['Switzerland', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Switzerland', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Spain', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Spain', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Switzerland', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Switzerland', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Switzerland property:diplomatic_relation ?z } UNION { resource:Switzerland property:diplomatic_relation ?y } UNION { resource:Spain property:diplomatic_relation ?z } UNION { resource:Spain property:diplomatic_relation ?y } UNION { resource:Switzerland property:diplomatic_relation ?z } UNION { resource:Switzerland property:diplomatic_relation ?y } } . ?z rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4910865
P734
Q82799
USER
Who has the surname Bill Shorten ?
(Q4910865,P734,c(Q82799))
action filter_type
action find
entity Q4910865
relation P734
type Q82799
['Q4910865', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?j WHERE { resource:Q4910865 property:P734 ?j . ?j rdf:type ontology:Q82799 }
Bill Shorten
action filter_type
action find
entity Bill Shorten
relation family name
type name
['Bill Shorten', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?j WHERE { resource:Bill_Shorten property:family_name ?j . ?j rdf:type ontology:name }
[]
name
Q16883242
SYSTEM
Shorten
Q16883242
(Q4910865,P734,c(Q82799))
action filter_type
action find
entity Q4910865
relation P734
type Q82799
[ANSWER] has the surname Bill [ANSWER]
['Q4910865', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?j WHERE { resource:Q4910865 property:P734 ?j . ?j rdf:type ontology:Q82799 }
Shorten
Shorten has the surname Bill Shorten
Shorten
action filter_type
action find
entity Bill Shorten
relation family name
type name
['Bill Shorten', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?j WHERE { resource:Bill_Shorten property:family_name ?j . ?j rdf:type ontology:name }
[]