Simple Question (Direct)
Simple Question
Q12429026
P57
Q502895
USER
Who was Jeevan Mukt directed by ?
(Q12429026,P57,c(Q502895))
action filter_type
action find
entity Q12429026
relation P57
type Q502895
['Q12429026', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { resource:Q12429026 property:P57 ?y . ?y rdf:type ontology:Q502895 }
Jeevan Mukt
action filter_type
action find
entity Jeevan Mukt
relation director
type common name
['Jeevan Mukt', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { resource:Jeevan_Mukt property:director ?y . ?y rdf:type ontology:common_name }
[]
common name
Q7633780
SYSTEM
Sudhendu Roy
Q7633780
(Q12429026,P57,c(Q502895))
action filter_type
action find
entity Q12429026
relation P57
type Q502895
Jeevan Mukt was directed by Rao [ANSWER]
['Q12429026', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { resource:Q12429026 property:P57 ?y . ?y rdf:type ontology:Q502895 }
Sudhendu Roy
Jeevan Mukt was directed by Rao Sudhendu Roy
Sudhendu Roy
action filter_type
action find
entity Jeevan Mukt
relation director
type common name
['Jeevan Mukt', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { resource:Jeevan_Mukt property:director ?y . ?y rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7633780
P344
Q838948
USER
Which work of art has that person as the director of photography ?
(c(Q838948),P344,Q7633780)
action filter_type
action find_reverse
entity Q7633780
relation P344
type Q838948
[{'concept': 'Q838948'}, 'P344', 'Q7633780']
SELECT DISTINCT ?e WHERE { ?e property:P344 resource:Q7633780 . ?e rdf:type ontology:Q838948 }
Sudhendu Roy
action filter_type
action find_reverse
entity Sudhendu Roy
relation director of photography
type work of art
[{'concept': 'work of art'}, 'director of photography', 'Sudhendu Roy']
SELECT DISTINCT ?e WHERE { ?e property:director_of_photography resource:Sudhendu_Roy . ?e rdf:type ontology:work_of_art }
[]
work of art
Q6123459
SYSTEM
Jai Santoshi Maa
Q6123459
(c(Q838948),P344,Q7633780)
action filter_type
action find_reverse
entity Q7633780
relation P344
type Q838948
[ANSWER] has that person as the director of photography
[{'concept': 'Q838948'}, 'P344', 'Q7633780']
SELECT DISTINCT ?e WHERE { ?e property:P344 resource:Q7633780 . ?e rdf:type ontology:Q838948 }
Jai Santoshi Maa
Jai Santoshi Maa has that person as the director of photography
Jai Santoshi Maa
action filter_type
action find_reverse
entity Sudhendu Roy
relation director of photography
type work of art
[{'concept': 'work of art'}, 'director of photography', 'Sudhendu Roy']
SELECT DISTINCT ?e WHERE { ?e property:director_of_photography resource:Sudhendu_Roy . ?e rdf:type ontology:work_of_art }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q7633780 Q922857
P344
Q838948
USER
How many works of art are Sudhendu Roy or UK Film Council the cinematographer of ?
(c(Q838948),P344,Q7633780) (c(Q838948),P344,Q922857)
action count
action union
action filter_type
action find_reverse
entity Q7633780
relation P344
type Q838948
action filter_type
action find_reverse
entity Q922857
relation P344
type Q838948
[{'concept': 'Q838948'}, 'P344', 'Q7633780'] [{'concept': 'Q838948'}, 'P344', 'Q922857']
SELECT DISTINCT ( COUNT ( ?a ) AS ?b ) WHERE { { ?a property:P344 resource:Q7633780 . ?a rdf:type ontology:Q838948 } UNION { ?a property:P344 resource:Q922857 . ?a rdf:type ontology:Q838948 } }
Sudhendu Roy UK Film Council
action count
action union
action filter_type
action find_reverse
entity Sudhendu Roy
relation director of photography
type work of art
action filter_type
action find_reverse
entity UK Film Council
relation director of photography
type work of art
[{'concept': 'work of art'}, 'director of photography', 'Sudhendu Roy'] [{'concept': 'work of art'}, 'director of photography', 'UK Film Council']
SELECT DISTINCT ( COUNT ( ?a ) AS ?b ) WHERE { { ?a property:director_of_photography resource:Sudhendu_Roy . ?a rdf:type ontology:work_of_art } UNION { ?a property:director_of_photography resource:UK_Film_Council . ?a rdf:type ontology:work_of_art } }
[]
work of art
SYSTEM
2
Q12100591 Q6123459
(c(Q838948),P344,Q7633780) (c(Q838948),P344,Q922857)
action count
action union
action filter_type
action find_reverse
entity Q7633780
relation P344
type Q838948
action filter_type
action find_reverse
entity Q922857
relation P344
type Q838948
[ANSWER]
[{'concept': 'Q838948'}, 'P344', 'Q7633780'] [{'concept': 'Q838948'}, 'P344', 'Q922857']
SELECT DISTINCT ( COUNT ( ?a ) AS ?b ) WHERE { { ?a property:P344 resource:Q7633780 . ?a rdf:type ontology:Q838948 } UNION { ?a property:P344 resource:Q922857 . ?a rdf:type ontology:Q838948 } }
Alan Partridge: Alpha Papa Jai Santoshi Maa
2
action count
action union
action filter_type
action find_reverse
entity Sudhendu Roy
relation director of photography
type work of art
action filter_type
action find_reverse
entity UK Film Council
relation director of photography
type work of art
[{'concept': 'work of art'}, 'director of photography', 'Sudhendu Roy'] [{'concept': 'work of art'}, 'director of photography', 'UK Film Council']
SELECT DISTINCT ( COUNT ( ?a ) AS ?b ) WHERE { { ?a property:director_of_photography resource:Sudhendu_Roy . ?a rdf:type ontology:work_of_art } UNION { ?a property:director_of_photography resource:UK_Film_Council . ?a rdf:type ontology:work_of_art } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q8678 Q7633780
P190 P20
Q56061
USER
Which administrative territories did Sudhendu Roy die or are partner towns of Rio de Janeiro ?
OR((Q7633780,P20,c(Q56061)), (Q8678,P190,c(Q56061)))
action filter_type
action union
action find
entity Q7633780
relation P20
action find
entity Q8678
relation P190
type Q56061
{'OR': [['Q7633780', 'P20', {'concept': 'Q56061'}], ['Q8678', 'P190', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Q7633780 property:P20 ?p } UNION { resource:Q8678 property:P190 ?p } } . ?p rdf:type ontology:Q56061 }
Rio de Janeiro Sudhendu Roy
action filter_type
action union
action find
entity Sudhendu Roy
relation place of death
action find
entity Rio de Janeiro
relation sister city
type administrative territorial entity
{'OR': [['Sudhendu Roy', 'place of death', {'concept': 'administrative territorial entity'}], ['Rio de Janeiro', 'sister city', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Sudhendu_Roy property:place_of_death ?p } UNION { resource:Rio_de_Janeiro property:sister_city ?p } } . ?p rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q24639 Q25395 Q1491 Q34863 Q2807 Q24826 Q12191 Q727 Q9248 Q178725
SYSTEM
Some of them are Vancouver, Newark, La Paz, Oklahoma City, Madrid, Liverpool, Nantes, Amsterdam, Baku, Niterói
Q178725 Q181557 Q727 Q3889 Q25395 Q3274 Q365 Q191135 Q40236 Q192807 Q24826 Q2807 Q14328 Q158119 Q735025 Q9248 Q51103 Q1524 Q1489 Q34863 Q48320 Q33935 Q71 Q33959 Q1156 Q1070 Q612 Q12191 Q26155 Q5582862 Q406 Q8673 Q24639 Q1563 Q6441 Q270 Q34820 Q5468 Q597 Q956 Q170903 Q23556 Q1019424 Q1491 Q1492 Q3820 Q1218 Q5112
OR((Q7633780,P20,c(Q56061)), (Q8678,P190,c(Q56061)))
action filter_type
action union
action find
entity Q7633780
relation P20
action find
entity Q8678
relation P190
type Q56061
Sudhendu Roy died in [ANSWERS] or are partner towns of Rio de Janeiro
{'OR': [['Q7633780', 'P20', {'concept': 'Q56061'}], ['Q8678', 'P190', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Q7633780 property:P20 ?p } UNION { resource:Q8678 property:P190 ?p } } . ?p rdf:type ontology:Q56061 }
Niterói Kaohsiung City Amsterdam Maputo Newark Managua Cologne Vila Nova de Gaia Manaus Ramat Gan Liverpool Madrid Santa Cruz de Tenerife Ramallah Cabo Frio Baku Cali Athens Mexico City Oklahoma City Kōbe Tel Aviv Geneva Nice Mumbai Ahmedabad Dubai Nantes Jounieh Cusco Istanbul Lagos Vancouver Havana Montpellier Warsaw Santo Domingo Durban Lisbon Beijing Guimarães Atlanta Rufisque La Paz Barcelona Beirut Jerusalem Adelaide
Sudhendu Roy died in Vancouver, Newark, La Paz, Oklahoma City, Madrid, Liverpool, Nantes, Amsterdam, Baku and Niterói or are partner towns of Rio de Janeiro
Vancouver Newark La Paz Oklahoma City Madrid Liverpool Nantes Amsterdam Baku Niterói
action filter_type
action union
action find
entity Sudhendu Roy
relation place of death
action find
entity Rio de Janeiro
relation sister city
type administrative territorial entity
{'OR': [['Sudhendu Roy', 'place of death', {'concept': 'administrative territorial entity'}], ['Rio de Janeiro', 'sister city', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Sudhendu_Roy property:place_of_death ?p } UNION { resource:Rio_de_Janeiro property:sister_city ?p } } . ?p rdf:type ontology:administrative_territorial_entity }
[]
Clarification
Comparative|More/Less|Mult. entity type|Indirect
P417
Q502895 Q1445650 Q56061
USER
Which administrative territories have adopted approximately the same number of people and holidays as patron saint as that administrative territory ?
(c(Q56061),P417,c(Q502895)|c(Q1445650))
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q502895'}, {'concept': 'Q1445650'}]]
SELECT DISTINCT ?z WHERE { { ?z property:Q28914 ?c . VALUES ( ?c ) { ( ?y ) ( ?x ) } } . ?z rdf:type ontology:Q56061 . ?y rdf:type ontology:Q502895 . ?x rdf:type ontology:Q1445650 }
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'common name'}, {'concept': 'holiday'}]]
SELECT DISTINCT ?z WHERE { { ?z property:patron_saint ?c . VALUES ( ?c ) { ( ?y ) ( ?x ) } } . ?z rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:common_name . ?x rdf:type ontology:holiday }
[]
common name holiday administrative territorial entity
Comparative|More/Less|Mult. entity type|Clarification
Q727
SYSTEM
Did you mean Amsterdam ?
(c(Q56061),P417,c(Q502895)|c(Q1445650))
[ANSWER]
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q502895'}, {'concept': 'Q1445650'}]]
SELECT DISTINCT ?z WHERE { { ?z property:Q28914 ?c . VALUES ( ?c ) { ( ?y ) ( ?x ) } } . ?z rdf:type ontology:Q56061 . ?y rdf:type ontology:Q502895 . ?x rdf:type ontology:Q1445650 }
Did you mean Amsterdam ?
Amsterdam
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'common name'}, {'concept': 'holiday'}]]
SELECT DISTINCT ?z WHERE { { ?z property:patron_saint ?c . VALUES ( ?c ) { ( ?y ) ( ?x ) } } . ?z rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:common_name . ?x rdf:type ontology:holiday }
[]
Comparative Reasoning (All)
USER
No, I meant Madrid. Could you tell me the answer for that?
(c(Q56061),P417,c(Q502895)|c(Q1445650))
Q2807
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q502895'}, {'concept': 'Q1445650'}]]
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'common name'}, {'concept': 'holiday'}]]
[]
SYSTEM
95
Q5818 Q187352 Q11974 Q40801 Q212841 Q454875 Q14209773 Q34111 Q81004 Q6737 Q13364 Q46844 Q73450 Q15468 Q490 Q41329 Q495 Q2044 Q1492 Q2028 Q929022 Q641 Q46165 Q649 Q58463 Q491588 Q3395964 Q73489 Q53825 Q200908 Q15090 Q36647 Q13375 Q15088 Q10305 Q53265 Q6340 Q101229 Q50135 Q2090 Q695550 Q53850 Q6285 Q9920 Q6046 Q3739344 Q2807 Q72279 Q133123 Q139595 Q3415 Q495798 Q82208 Q3557616 Q374108 Q3562704 Q428018 Q90 Q431389 Q5991813 Q380189 Q617 Q470461 Q733574 Q932648 Q100143 Q100065 Q13121 Q465078 Q3947670 Q100772 Q71935 Q51400 Q504216 Q51315 Q210470 Q11959 Q52215 Q15095 Q3740507 Q2634 Q51929 Q8356 Q47281 Q58581 Q119066 Q1155 Q200036 Q15487 Q244207 Q1957 Q50074 Q1897 Q433066 Q46864
(c(Q56061),P417,c(Q502895)|c(Q1445650))
[ANSWER]
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q502895'}, {'concept': 'Q1445650'}]]
SELECT DISTINCT ?z WHERE { { { ?z property:Q28914 ?y } UNION { ?z property:Q28914 ?x } } . ?z rdf:type ontology:Q56061 . ?y rdf:type ontology:Q502895 . ?x rdf:type ontology:Q1445650 }
Córdoba Kavala Las Palmas de Gran Canaria Borca di Cadore Drama Amarante Municipality San Lorenzo de' Picenardi Pozzallo Laviano Castellammare di Stabia Ravenna Roana Caldarola Badalona Milan Linz Turin Florence Barcelona Verona Giannitsa Venice Montecchio Maggiore Moscow Cancello e Arnone Camporeale Koufalia Camerino Altilia Rethymno Lleida Cork Pisa Tarragona Zaragoza Gemona del Friuli Castel Giorgio Martinengo Rocca di Cambio Nuremberg Huécija Cariati Varese Haarlem Novara Neokaisareia Madrid Mugnano di Napoli Patras Zacharo Ancona Brolo Kastritsa Platres Altrei Molista Mölten Paris Welsberg-Taisten Mansilla del Páramo Toblach Padua Amfilochia Istiaia Didymoteicho Caprino Bergamasco Mirandola Aalst Astorga San Mauro Mare Busseto Casamarciano Spoltore St. Martin in Passeier Villamagna Katerini Alicante Tuglie Albacete Favrio Naples Ischitella Valladolid Jesolo Curti, Campania Latera Busto Arsizio Volos Berga Campione d'Italia Vologda Castellafiume Cagliari Moos in Passeier Arcugnano
95
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'common name'}, {'concept': 'holiday'}]]
SELECT DISTINCT ?z WHERE { { { ?z property:patron_saint ?y } UNION { ?z property:patron_saint ?x } } . ?z rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:common_name . ?x rdf:type ontology:holiday }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q15731830
P1533
Q82799
USER
Which name is identical to Karl ?
(Q15731830,P1533,c(Q82799))
action filter_type
action find
entity Q15731830
relation P1533
type Q82799
['Q15731830', 'P1533', {'concept': 'Q82799'}]
SELECT DISTINCT ?s WHERE { resource:Q15731830 property:P1533 ?s . ?s rdf:type ontology:Q82799 }
Karl
action filter_type
action find
entity Karl
relation family name identical to this first name
type name
['Karl', 'family name identical to this first name', {'concept': 'name'}]
SELECT DISTINCT ?s WHERE { resource:Karl property:family_name_identical_to_this_first_name ?s . ?s rdf:type ontology:name }
[]
name
Q18413197
SYSTEM
Karl
Q18413197
(Q15731830,P1533,c(Q82799))
action filter_type
action find
entity Q15731830
relation P1533
type Q82799
To [ANSWER] is identical to [ANSWER]
['Q15731830', 'P1533', {'concept': 'Q82799'}]
SELECT DISTINCT ?s WHERE { resource:Q15731830 property:P1533 ?s . ?s rdf:type ontology:Q82799 }
Karl
To Karl is identical to Karl
Karl
action filter_type
action find
entity Karl
relation family name identical to this first name
type name
['Karl', 'family name identical to this first name', {'concept': 'name'}]
SELECT DISTINCT ?s WHERE { resource:Karl property:family_name_identical_to_this_first_name ?s . ?s rdf:type ontology:name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q15731830
P1750
Q573
USER
Which day is linked with Karl ?
(Q15731830,P1750,c(Q573))
action filter_type
action find
entity Q15731830
relation P1750
type Q573
['Q15731830', 'P1750', {'concept': 'Q573'}]
SELECT DISTINCT ?o WHERE { resource:Q15731830 property:P1750 ?o . ?o rdf:type ontology:Q573 }
Karl
action filter_type
action find
entity Karl
relation name day
type day
['Karl', 'name day', {'concept': 'day'}]
SELECT DISTINCT ?o WHERE { resource:Karl property:name_day ?o . ?o rdf:type ontology:day }
[]
day
Q2285
SYSTEM
January 28
Q2285
(Q15731830,P1750,c(Q573))
action filter_type
action find
entity Q15731830
relation P1750
type Q573
[ANSWER] is linked with Karl
['Q15731830', 'P1750', {'concept': 'Q573'}]
SELECT DISTINCT ?o WHERE { resource:Q15731830 property:P1750 ?o . ?o rdf:type ontology:Q573 }
January 28
January 28 is linked with Karl
January 28
action filter_type
action find
entity Karl
relation name day
type day
['Karl', 'name day', {'concept': 'day'}]
SELECT DISTINCT ?o WHERE { resource:Karl property:name_day ?o . ?o rdf:type ontology:day }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1355252
Q573
USER
And what about Erland?
(Q1355252,P1750,c(Q573))
action filter_type
action find
entity Q1355252
relation P1750
type Q573
['Q1355252', 'P1750', {'concept': 'Q573'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q573 . resource:Q1355252 property:P1750 ?h }
Erland
action filter_type
action find
entity Erland
relation name day
type day
['Erland', 'name day', {'concept': 'day'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:day . resource:Erland property:name_day ?h }
[]
day
Q2234
SYSTEM
January 8
Q2234
(Q1355252,P1750,c(Q573))
action filter_type
action find
entity Q1355252
relation P1750
type Q573
[ANSWER]
['Q1355252', 'P1750', {'concept': 'Q573'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q573 . resource:Q1355252 property:P1750 ?h }
January 8
January 8
action filter_type
action find
entity Erland
relation name day
type day
['Erland', 'name day', {'concept': 'day'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:day . resource:Erland property:name_day ?h }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q727
P1376
Q15617994 Q7275
USER
How many administrative territories or states have Amsterdam as their capital ?
(Q727,P1376,c(Q15617994)) (Q727,P1376,c(Q7275))
action count
action union
action filter_type
action find
entity Q727
relation P1376
type Q15617994
action filter_type
action find
entity Q727
relation P1376
type Q7275
['Q727', 'P1376', {'concept': 'Q15617994'}] ['Q727', 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?r ) WHERE { { resource:Q727 property:P1376 ?l . ?l rdf:type ontology:Q15617994 } UNION { resource:Q727 property:P1376 ?l . ?l rdf:type ontology:Q7275 } }
Amsterdam
action count
action union
action filter_type
action find
entity Amsterdam
relation capital of
type designation for an administrative territorial entity
action filter_type
action find
entity Amsterdam
relation capital of
type state
['Amsterdam', 'capital of', {'concept': 'designation for an administrative territorial entity'}] ['Amsterdam', 'capital of', {'concept': 'state'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?r ) WHERE { { resource:Amsterdam property:capital_of ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:Amsterdam property:capital_of ?l . ?l rdf:type ontology:state } }
[]
designation for an administrative territorial entity state
SYSTEM
5
Q774783 Q29999 Q55 Q15864 Q231168
(Q727,P1376,c(Q15617994)) (Q727,P1376,c(Q7275))
action count
action union
action filter_type
action find
entity Q727
relation P1376
type Q15617994
action filter_type
action find
entity Q727
relation P1376
type Q7275
[ANSWER]
['Q727', 'P1376', {'concept': 'Q15617994'}] ['Q727', 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?r ) WHERE { { resource:Q727 property:P1376 ?l . ?l rdf:type ontology:Q15617994 } UNION { resource:Q727 property:P1376 ?l . ?l rdf:type ontology:Q7275 } }
Sovereign Principality of the United Netherlands Kingdom of the Netherlands Netherlands United Kingdom of the Netherlands Zuyderzée
5
action count
action union
action filter_type
action find
entity Amsterdam
relation capital of
type designation for an administrative territorial entity
action filter_type
action find
entity Amsterdam
relation capital of
type state
['Amsterdam', 'capital of', {'concept': 'designation for an administrative territorial entity'}] ['Amsterdam', 'capital of', {'concept': 'state'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?r ) WHERE { { resource:Amsterdam property:capital_of ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:Amsterdam property:capital_of ?l . ?l rdf:type ontology:state } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q2807
P1376
Q13220204 Q1048835
USER
How many administrative country subdivisions and political territories have Madrid as their county seat ?
(Q2807,P1376,c(Q13220204)) (Q2807,P1376,c(Q1048835))
action count
action union
action filter_type
action find
entity Q2807
relation P1376
type Q13220204
action filter_type
action find
entity Q2807
relation P1376
type Q1048835
['Q2807', 'P1376', {'concept': 'Q13220204'}] ['Q2807', 'P1376', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?s ) WHERE { VALUES ( ?y ) { ( ontology:Q13220204 ) ( ontology:Q1048835 ) } . ?m rdf:type ?y }
Madrid
action count
action union
action filter_type
action find
entity Madrid
relation capital of
type second-level administrative country subdivision
action filter_type
action find
entity Madrid
relation capital of
type political territorial entity
['Madrid', 'capital of', {'concept': 'second-level administrative country subdivision'}] ['Madrid', 'capital of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?s ) WHERE { VALUES ( ?y ) { ( ontology:second-level_administrative_country_subdivision ) ( ontology:political_territorial_entity ) } . ?m rdf:type ?y }
[]
second-level administrative country subdivision political territorial entity
SYSTEM
1 administrative country subdivisions and 1 political territories
Q24069437 Q5756
(Q2807,P1376,c(Q13220204)) (Q2807,P1376,c(Q1048835))
action count
action union
action filter_type
action find
entity Q2807
relation P1376
type Q13220204
action filter_type
action find
entity Q2807
relation P1376
type Q1048835
[ANSWER]
['Q2807', 'P1376', {'concept': 'Q13220204'}] ['Q2807', 'P1376', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?s ) WHERE { VALUES ( ?y ) { ( ontology:Q13220204 ) ( ontology:Q1048835 ) } . ?m rdf:type ?y }
Madrid Province Community of Madrid
1 administrative country subdivisions and 1 political territories
action count
action union
action filter_type
action find
entity Madrid
relation capital of
type second-level administrative country subdivision
action filter_type
action find
entity Madrid
relation capital of
type political territorial entity
['Madrid', 'capital of', {'concept': 'second-level administrative country subdivision'}] ['Madrid', 'capital of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?s ) WHERE { VALUES ( ?y ) { ( ontology:second-level_administrative_country_subdivision ) ( ontology:political_territorial_entity ) } . ?m rdf:type ?y }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q16646683 Q2285
P361
Q1790144
USER
Which units of time are January 28 or July 1845 a part of ?
OR((Q2285,P361,c(Q1790144)), (Q16646683,P361,c(Q1790144)))
action filter_type
action union
action find
entity Q2285
relation P361
action find
entity Q16646683
relation P361
type Q1790144
{'OR': [['Q2285', 'P361', {'concept': 'Q1790144'}], ['Q16646683', 'P361', {'concept': 'Q1790144'}]]}
SELECT DISTINCT ?i WHERE { { VALUES ( ?y ) { ( resource:Q2285 ) ( resource:Q16646683 ) } . ?y property:P361 ?i } . ?i rdf:type ontology:Q1790144 }
July 1845 January 28
action filter_type
action union
action find
entity January 28
relation part of
action find
entity July 1845
relation part of
type unit of time
{'OR': [['January 28', 'part of', {'concept': 'unit of time'}], ['July 1845', 'part of', {'concept': 'unit of time'}]]}
SELECT DISTINCT ?i WHERE { { VALUES ( ?y ) { ( resource:January_28 ) ( resource:July_1845 ) } . ?y property:part_of ?i } . ?i rdf:type ontology:unit_of_time }
[]
unit of time
Q7636 Q108
SYSTEM
1845, January
Q7636 Q108
OR((Q2285,P361,c(Q1790144)), (Q16646683,P361,c(Q1790144)))
action filter_type
action union
action find
entity Q2285
relation P361
action find
entity Q16646683
relation P361
type Q1790144
The [ANSWERS] are January 28 or July 1845 a part of
{'OR': [['Q2285', 'P361', {'concept': 'Q1790144'}], ['Q16646683', 'P361', {'concept': 'Q1790144'}]]}
SELECT DISTINCT ?i WHERE { { VALUES ( ?y ) { ( resource:Q2285 ) ( resource:Q16646683 ) } . ?y property:P361 ?i } . ?i rdf:type ontology:Q1790144 }
1845 January
The 1845 and January are January 28 or July 1845 a part of
1845 January
action filter_type
action union
action find
entity January 28
relation part of
action find
entity July 1845
relation part of
type unit of time
{'OR': [['January 28', 'part of', {'concept': 'unit of time'}], ['July 1845', 'part of', {'concept': 'unit of time'}]]}
SELECT DISTINCT ?i WHERE { { VALUES ( ?y ) { ( resource:January_28 ) ( resource:July_1845 ) } . ?y property:part_of ?i } . ?i rdf:type ontology:unit_of_time }
[]