Simple Question (Direct)
Simple Question
Q1097999
P20
Q56061
USER
Where did the demise of Claudio Brook occur ?
(Q1097999,P20,c(Q56061))
action filter_type
action find
entity Q1097999
relation P20
type Q56061
['Q1097999', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?w WHERE { resource:Q1097999 property:P20 ?w . ?w rdf:type ontology:Q56061 }
Claudio Brook
action filter_type
action find
entity Claudio Brook
relation place of death
type administrative territorial entity
['Claudio Brook', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Claudio_Brook property:place_of_death ?w . ?w rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1489
SYSTEM
Mexico City
Q1489
(Q1097999,P20,c(Q56061))
action filter_type
action find
entity Q1097999
relation P20
type Q56061
The demise of Claudio Brook occurred in [ANSWER]
['Q1097999', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?w WHERE { resource:Q1097999 property:P20 ?w . ?w rdf:type ontology:Q56061 }
Mexico City
The demise of Claudio Brook occurred in Mexico City
Mexico City
action filter_type
action find
entity Claudio Brook
relation place of death
type administrative territorial entity
['Claudio Brook', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Claudio_Brook property:place_of_death ?w . ?w rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1097999
P19
Q56061
USER
Which administrative territory was Claudio Brook born in ?
(Q1097999,P19,c(Q56061))
action filter_type
action find
entity Q1097999
relation P19
type Q56061
['Q1097999', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { resource:Q1097999 property:P19 ?s . ?s rdf:type ontology:Q56061 }
Claudio Brook
action filter_type
action find
entity Claudio Brook
relation place of birth
type administrative territorial entity
['Claudio Brook', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Claudio_Brook property:place_of_birth ?s . ?s rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1489
SYSTEM
Mexico City
Q1489
(Q1097999,P19,c(Q56061))
action filter_type
action find
entity Q1097999
relation P19
type Q56061
Claudio Brook was born in [ANSWER]
['Q1097999', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { resource:Q1097999 property:P19 ?s . ?s rdf:type ontology:Q56061 }
Mexico City
Claudio Brook was born in Mexico City
Mexico City
action filter_type
action find
entity Claudio Brook
relation place of birth
type administrative territorial entity
['Claudio Brook', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Claudio_Brook property:place_of_birth ?s . ?s rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1489
P1376
Q7275
USER
Which state has that administrative territory as its county seat ?
(Q1489,P1376,c(Q7275))
action filter_type
action find
entity Q1489
relation P1376
type Q7275
['Q1489', 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?m WHERE { resource:Q1489 property:P1376 ?m . ?m rdf:type ontology:Q7275 }
Mexico City
action filter_type
action find
entity Mexico City
relation capital of
type state
['Mexico City', 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?m WHERE { resource:Mexico_City property:capital_of ?m . ?m rdf:type ontology:state }
[]
state
Q285658
SYSTEM
First Mexican Empire
Q285658
(Q1489,P1376,c(Q7275))
action filter_type
action find
entity Q1489
relation P1376
type Q7275
[ANSWER] has that administrative territory as its county seat
['Q1489', 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?m WHERE { resource:Q1489 property:P1376 ?m . ?m rdf:type ontology:Q7275 }
First Mexican Empire
First Mexican Empire has that administrative territory as its county seat
First Mexican Empire
action filter_type
action find
entity Mexico City
relation capital of
type state
['Mexico City', 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?m WHERE { resource:Mexico_City property:capital_of ?m . ?m rdf:type ontology:state }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q285658 Q1489 Q4180673
P36
Q56061
USER
Does that state have Mexico City and Zhytlivka as its administrative centre ?
(Q285658,P36,Q1489) (Q285658,P36,Q4180673)
action is_in
entity Q285658
action intersection
action find_reverse
entity Q1489
relation P36
action find_reverse
entity Q4180673
relation P36
['Q285658', 'P36', 'Q1489'] ['Q285658', 'P36', 'Q4180673']
ASK WHERE { resource:Q285658 property:P36 resource:Q1489 . resource:Q285658 property:P36 resource:Q4180673 }
First Mexican Empire Mexico City Zhytlivka
action is_in
entity First Mexican Empire
action intersection
action find_reverse
entity Mexico City
relation capital
action find_reverse
entity Zhytlivka
relation capital
['First Mexican Empire', 'capital', 'Mexico City'] ['First Mexican Empire', 'capital', 'Zhytlivka']
ASK WHERE { resource:First_Mexican_Empire property:capital resource:Mexico_City . resource:First_Mexican_Empire property:capital resource:Zhytlivka }
[]
administrative territorial entity
SYSTEM
YES and NO respectively
(Q285658,P36,Q1489) (Q285658,P36,Q4180673)
action is_in
entity Q285658
action intersection
action find_reverse
entity Q1489
relation P36
action find_reverse
entity Q4180673
relation P36
[ANSWER]
['Q285658', 'P36', 'Q1489'] ['Q285658', 'P36', 'Q4180673']
ASK WHERE { resource:Q285658 property:P36 resource:Q1489 . resource:Q285658 property:P36 resource:Q4180673 }
YES and NO respectively
action is_in
entity First Mexican Empire
action intersection
action find_reverse
entity Mexico City
relation capital
action find_reverse
entity Zhytlivka
relation capital
['First Mexican Empire', 'capital', 'Mexico City'] ['First Mexican Empire', 'capital', 'Zhytlivka']
ASK WHERE { resource:First_Mexican_Empire property:capital resource:Mexico_City . resource:First_Mexican_Empire property:capital resource:Zhytlivka }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q1097999 Q96 Q7839542
P27
Q15617994
USER
Is Claudio Brook a native of Mexico and Trewey ?
(Q1097999,P27,Q96) (Q1097999,P27,Q7839542)
action is_in
entity Q1097999
action intersection
action find_reverse
entity Q96
relation P27
action find_reverse
entity Q7839542
relation P27
['Q1097999', 'P27', 'Q96'] ['Q1097999', 'P27', 'Q7839542']
ASK WHERE { resource:Q1097999 property:P27 resource:Q96 . resource:Q1097999 property:P27 resource:Q7839542 }
Claudio Brook Mexico Trewey
action is_in
entity Claudio Brook
action intersection
action find_reverse
entity Mexico
relation country of citizenship
action find_reverse
entity Trewey
relation country of citizenship
['Claudio Brook', 'country of citizenship', 'Mexico'] ['Claudio Brook', 'country of citizenship', 'Trewey']
ASK WHERE { resource:Claudio_Brook property:country_of_citizenship resource:Mexico . resource:Claudio_Brook property:country_of_citizenship resource:Trewey }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q1097999,P27,Q96) (Q1097999,P27,Q7839542)
action is_in
entity Q1097999
action intersection
action find_reverse
entity Q96
relation P27
action find_reverse
entity Q7839542
relation P27
[ANSWER]
['Q1097999', 'P27', 'Q96'] ['Q1097999', 'P27', 'Q7839542']
ASK WHERE { resource:Q1097999 property:P27 resource:Q96 . resource:Q1097999 property:P27 resource:Q7839542 }
YES and NO respectively
action is_in
entity Claudio Brook
action intersection
action find_reverse
entity Mexico
relation country of citizenship
action find_reverse
entity Trewey
relation country of citizenship
['Claudio Brook', 'country of citizenship', 'Mexico'] ['Claudio Brook', 'country of citizenship', 'Trewey']
ASK WHERE { resource:Claudio_Brook property:country_of_citizenship resource:Mexico . resource:Claudio_Brook property:country_of_citizenship resource:Trewey }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P655
Q502895 Q234460 Q2342494
USER
Which people are the translator of atleast 2 texts or collectables ?
(c(Q234460)|c(Q2342494),P655,c(Q502895))
action atleast
action union
action find_reverse_tuple_counts
relation P655
type Q502895
type Q234460
action find_reverse_tuple_counts
relation P655
type Q502895
type Q2342494
value 2
[[{'concept': 'Q234460'}, {'concept': 'Q2342494'}], 'P655', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?o ) AS ?u ) WHERE { { ?o property:P655 ?i . ?i rdf:type ontology:Q502895 . ?o rdf:type ontology:Q234460 } UNION { ?i rdf:type ontology:Q502895 . ?o rdf:type ontology:Q2342494 . ?o property:P655 ?i } } GROUP BY ?i } . FILTER ( ?u >= 2 ) }
action atleast
action union
action find_reverse_tuple_counts
relation translator
type common name
type text
action find_reverse_tuple_counts
relation translator
type common name
type collectable
value 2
[[{'concept': 'text'}, {'concept': 'collectable'}], 'translator', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?o ) AS ?u ) WHERE { { ?o property:translator ?i . ?i rdf:type ontology:common_name . ?o rdf:type ontology:text } UNION { ?i rdf:type ontology:common_name . ?o rdf:type ontology:collectable . ?o property:translator ?i } } GROUP BY ?i } . FILTER ( ?u >= 2 ) }
[]
common name text collectable
Q993835 Q12749 Q8020113
SYSTEM
Otokar Fischer, Kazimierz Bein, William Weaver
Q6180799 Q12749 Q6536944 Q2495818 Q993835 Q18543209 Q8191787 Q8020113 Q234530 Q12026401 Q12883 Q4800649 Q1969016
(c(Q234460)|c(Q2342494),P655,c(Q502895))
action atleast
action union
action find_reverse_tuple_counts
relation P655
type Q502895
type Q234460
action find_reverse_tuple_counts
relation P655
type Q502895
type Q2342494
value 2
[ANSWERS] are the translator of atleast 2 texts or collectables
[[{'concept': 'Q234460'}, {'concept': 'Q2342494'}], 'P655', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?o ) AS ?u ) WHERE { { ?o property:P655 ?i . ?i rdf:type ontology:Q502895 . ?o rdf:type ontology:Q234460 } UNION { ?i rdf:type ontology:Q502895 . ?o rdf:type ontology:Q2342494 . ?o property:P655 ?i } } GROUP BY ?i } . FILTER ( ?u >= 2 ) }
Jeremiah Curtin Kazimierz Bein Lewis Page Mercier Constance Garnett Otokar Fischer Irmtraud Zimmermann-Göllheim Michael Kandel William Weaver Emma Orczy Josef Mikuláš Boleslavský Gerrit Berveling Arthur Wesley Wheen Alexander Teixeira de Mattos
Otokar Fischer, Kazimierz Bein and William Weaver are the translator of atleast 2 texts or collectables
Otokar Fischer Kazimierz Bein William Weaver
action atleast
action union
action find_reverse_tuple_counts
relation translator
type common name
type text
action find_reverse_tuple_counts
relation translator
type common name
type collectable
value 2
[[{'concept': 'text'}, {'concept': 'collectable'}], 'translator', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?o ) AS ?u ) WHERE { { ?o property:translator ?i . ?i rdf:type ontology:common_name . ?o rdf:type ontology:text } UNION { ?i rdf:type ontology:common_name . ?o rdf:type ontology:collectable . ?o property:translator ?i } } GROUP BY ?i } . FILTER ( ?u >= 2 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q1489 Q1773
P190
Q515
USER
How many cities are twin towns of Mexico City and Riga ?
(Q1489,P190,c(Q515)) (Q1773,P190,c(Q515))
action count
action intersection
action filter_type
action find
entity Q1489
relation P190
type Q515
action filter_type
action find
entity Q1773
relation P190
type Q515
['Q1489', 'P190', {'concept': 'Q515'}] ['Q1773', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?b ) WHERE { resource:Q1773 property:P190 ?q . ?q rdf:type ontology:Q515 . ?q rdf:type ontology:Q515 . resource:Q1489 property:P190 ?q }
Mexico City Riga
action count
action intersection
action filter_type
action find
entity Mexico City
relation sister city
type city
action filter_type
action find
entity Riga
relation sister city
type city
['Mexico City', 'sister city', {'concept': 'city'}] ['Riga', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?b ) WHERE { resource:Riga property:sister_city ?q . ?q rdf:type ontology:city . ?q rdf:type ontology:city . resource:Mexico_City property:sister_city ?q }
[]
city
SYSTEM
2
Q2887 Q1899
(Q1489,P190,c(Q515)) (Q1773,P190,c(Q515))
action count
action intersection
action filter_type
action find
entity Q1489
relation P190
type Q515
action filter_type
action find
entity Q1773
relation P190
type Q515
[ANSWER]
['Q1489', 'P190', {'concept': 'Q515'}] ['Q1773', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?b ) WHERE { resource:Q1773 property:P190 ?q . ?q rdf:type ontology:Q515 . ?q rdf:type ontology:Q515 . resource:Q1489 property:P190 ?q }
Santiago Kyiv
2
action count
action intersection
action filter_type
action find
entity Mexico City
relation sister city
type city
action filter_type
action find
entity Riga
relation sister city
type city
['Mexico City', 'sister city', {'concept': 'city'}] ['Riga', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?b ) WHERE { resource:Riga property:sister_city ?q . ?q rdf:type ontology:city . ?q rdf:type ontology:city . resource:Mexico_City property:sister_city ?q }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q993835
P22
Q502895
USER
Which person has Otokar Fischer as a parent ?
(c(Q502895),P22,Q993835)
action filter_type
action find_reverse
entity Q993835
relation P22
type Q502895
[{'concept': 'Q502895'}, 'P22', 'Q993835']
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q502895 . ?l property:P22 resource:Q993835 }
Otokar Fischer
action filter_type
action find_reverse
entity Otokar Fischer
relation father
type common name
[{'concept': 'common name'}, 'father', 'Otokar Fischer']
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:common_name . ?l property:father resource:Otokar_Fischer }
[]
common name
Q1682100
SYSTEM
Jan Otakar Fischer
Q1682100
(c(Q502895),P22,Q993835)
action filter_type
action find_reverse
entity Q993835
relation P22
type Q502895
[ANSWER] has Otokar Fischer as a parent
[{'concept': 'Q502895'}, 'P22', 'Q993835']
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q502895 . ?l property:P22 resource:Q993835 }
Jan Otakar Fischer
Jan Otakar Fischer has Otokar Fischer as a parent
Jan Otakar Fischer
action filter_type
action find_reverse
entity Otokar Fischer
relation father
type common name
[{'concept': 'common name'}, 'father', 'Otokar Fischer']
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:common_name . ?l property:father resource:Otokar_Fischer }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1682100
P40
Q502895
USER
Which person has that one as an offspring ?
(c(Q502895),P40,Q1682100)
action filter_type
action find_reverse
entity Q1682100
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q1682100']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q502895 . ?p property:P40 resource:Q1682100 }
Jan Otakar Fischer
action filter_type
action find_reverse
entity Jan Otakar Fischer
relation child
type common name
[{'concept': 'common name'}, 'child', 'Jan Otakar Fischer']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:common_name . ?p property:child resource:Jan_Otakar_Fischer }
[]
common name
Q993835
SYSTEM
Otokar Fischer
Q993835
(c(Q502895),P40,Q1682100)
action filter_type
action find_reverse
entity Q1682100
relation P40
type Q502895
[ANSWER] has that one as an offspring
[{'concept': 'Q502895'}, 'P40', 'Q1682100']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q502895 . ?p property:P40 resource:Q1682100 }
Otokar Fischer
Otokar Fischer has that one as an offspring
Otokar Fischer
action filter_type
action find_reverse
entity Jan Otakar Fischer
relation child
type common name
[{'concept': 'common name'}, 'child', 'Jan Otakar Fischer']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:common_name . ?p property:child resource:Jan_Otakar_Fischer }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q993835
P937
Q56061
USER
What is the location where that person worked ?
(Q993835,P937,c(Q56061))
action filter_type
action find
entity Q993835
relation P937
type Q56061
['Q993835', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { resource:Q993835 property:P937 ?s . ?s rdf:type ontology:Q56061 }
Otokar Fischer
action filter_type
action find
entity Otokar Fischer
relation work location
type administrative territorial entity
['Otokar Fischer', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Otokar_Fischer property:work_location ?s . ?s rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1085
SYSTEM
Prague
Q1085
(Q993835,P937,c(Q56061))
action filter_type
action find
entity Q993835
relation P937
type Q56061
The location that person worked is in [ANSWER]
['Q993835', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { resource:Q993835 property:P937 ?s . ?s rdf:type ontology:Q56061 }
Prague
The location that person worked is in Prague
Prague
action filter_type
action find
entity Otokar Fischer
relation work location
type administrative territorial entity
['Otokar Fischer', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Otokar_Fischer property:work_location ?s . ?s rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q1085 Q9855426
P19
Q502895
USER
Does Constantino José Marques de Sampaio e Melo have location of birth at that administrative territory ?
(Q9855426,P19,Q1085)
action is_in
entity Q9855426
action find
entity Q1085
relation P19
['Q9855426', 'P19', 'Q1085']
ASK WHERE { resource:Q1085 property:P19 resource:Q9855426 }
Prague Constantino José Marques de Sampaio e Melo
action is_in
entity Constantino José Marques de Sampaio e Melo
action find
entity Prague
relation place of birth
['Constantino José Marques de Sampaio e Melo', 'place of birth', 'Prague']
ASK WHERE { resource:Prague property:place_of_birth resource:Constantino_José_Marques_de_Sampaio_e_Melo }
[]
common name
SYSTEM
NO
(Q9855426,P19,Q1085)
action is_in
entity Q9855426
action find
entity Q1085
relation P19
[ANSWER]
['Q9855426', 'P19', 'Q1085']
ASK WHERE { resource:Q1085 property:P19 resource:Q9855426 }
No
action is_in
entity Constantino José Marques de Sampaio e Melo
action find
entity Prague
relation place of birth
['Constantino José Marques de Sampaio e Melo', 'place of birth', 'Prague']
ASK WHERE { resource:Prague property:place_of_birth resource:Constantino_José_Marques_de_Sampaio_e_Melo }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q9356924 Q1097999
P27
Q15617994
USER
Which administrative territories do Claudio Brook or Teofil Jaśkiewicz belong to ?
OR((Q1097999,P27,c(Q15617994)), (Q9356924,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q1097999
relation P27
action find
entity Q9356924
relation P27
type Q15617994
{'OR': [['Q1097999', 'P27', {'concept': 'Q15617994'}], ['Q9356924', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?w WHERE { { ?m property:P27 ?w . VALUES ( ?m ) { ( resource:Q1097999 ) ( resource:Q9356924 ) } } . ?w rdf:type ontology:Q15617994 }
Teofil Jaśkiewicz Claudio Brook
action filter_type
action union
action find
entity Claudio Brook
relation country of citizenship
action find
entity Teofil Jaśkiewicz
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Claudio Brook', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Teofil Jaśkiewicz', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { { ?m property:country_of_citizenship ?w . VALUES ( ?m ) { ( resource:Claudio_Brook ) ( resource:Teofil_Jaśkiewicz ) } } . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q96 Q36
SYSTEM
Mexico, Poland
Q96 Q36
OR((Q1097999,P27,c(Q15617994)), (Q9356924,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q1097999
relation P27
action find
entity Q9356924
relation P27
type Q15617994
Claudio Brook or Teofil Jaśkiewicz belong to the [ANSWERS]
{'OR': [['Q1097999', 'P27', {'concept': 'Q15617994'}], ['Q9356924', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?w WHERE { { ?m property:P27 ?w . VALUES ( ?m ) { ( resource:Q1097999 ) ( resource:Q9356924 ) } } . ?w rdf:type ontology:Q15617994 }
Mexico Poland
Claudio Brook or Teofil Jaśkiewicz belong to the Mexico and Poland
Mexico Poland
action filter_type
action union
action find
entity Claudio Brook
relation country of citizenship
action find
entity Teofil Jaśkiewicz
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Claudio Brook', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Teofil Jaśkiewicz', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { { ?m property:country_of_citizenship ?w . VALUES ( ?m ) { ( resource:Claudio_Brook ) ( resource:Teofil_Jaśkiewicz ) } } . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q6427329 Q96
P17
Q15617994
USER
Which administrative territories are Mexico or Kolkhoz Krasnyy Oktyabr present in ?
OR((Q96,P17,c(Q15617994)), (Q6427329,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q96
relation P17
action find
entity Q6427329
relation P17
type Q15617994
{'OR': [['Q96', 'P17', {'concept': 'Q15617994'}], ['Q6427329', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?r WHERE { { ?j property:P17 ?r . VALUES ( ?j ) { ( resource:Q96 ) ( resource:Q6427329 ) } } . ?r rdf:type ontology:Q15617994 }
Kolkhoz Krasnyy Oktyabr Mexico
action filter_type
action union
action find
entity Mexico
relation country
action find
entity Kolkhoz Krasnyy Oktyabr
relation country
type designation for an administrative territorial entity
{'OR': [['Mexico', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Kolkhoz Krasnyy Oktyabr', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?r WHERE { { ?j property:country ?r . VALUES ( ?j ) { ( resource:Mexico ) ( resource:Kolkhoz_Krasnyy_Oktyabr ) } } . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q227 Q96
SYSTEM
Azerbaijan, Mexico
Q227 Q96
OR((Q96,P17,c(Q15617994)), (Q6427329,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q96
relation P17
action find
entity Q6427329
relation P17
type Q15617994
[ANSWERS] are Mexico or Kolkhoz Krasnyy Oktyabr present in
{'OR': [['Q96', 'P17', {'concept': 'Q15617994'}], ['Q6427329', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?r WHERE { { ?j property:P17 ?r . VALUES ( ?j ) { ( resource:Q96 ) ( resource:Q6427329 ) } } . ?r rdf:type ontology:Q15617994 }
Azerbaijan Mexico
Azerbaijan and Mexico are Mexico or Kolkhoz Krasnyy Oktyabr present in
Azerbaijan Mexico
action filter_type
action union
action find
entity Mexico
relation country
action find
entity Kolkhoz Krasnyy Oktyabr
relation country
type designation for an administrative territorial entity
{'OR': [['Mexico', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Kolkhoz Krasnyy Oktyabr', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?r WHERE { { ?j property:country ?r . VALUES ( ?j ) { ( resource:Mexico ) ( resource:Kolkhoz_Krasnyy_Oktyabr ) } } . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P1376
Q7275 Q515 Q486972
USER
Which states have around 1 cities and human settlements as their county seat ?
(c(Q515)|c(Q486972),P1376,c(Q7275))
action approx
action union
action find_reverse_tuple_counts
relation P1376
type Q7275
type Q515
action find_reverse_tuple_counts
relation P1376
type Q7275
type Q486972
value 1
[[{'concept': 'Q515'}, {'concept': 'Q486972'}], 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?k WHERE { FILTER ( ?q = 1 ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?q ) ?k WHERE { { ?k rdf:type ontology:Q7275 . ?m rdf:type ontology:Q486972 . ?m property:P1376 ?k } UNION { ?m property:P1376 ?k . ?k rdf:type ontology:Q7275 . ?m rdf:type ontology:Q515 } } GROUP BY ?k } }
action approx
action union
action find_reverse_tuple_counts
relation capital of
type state
type city
action find_reverse_tuple_counts
relation capital of
type state
type human settlement
value 1
[[{'concept': 'city'}, {'concept': 'human settlement'}], 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?k WHERE { FILTER ( ?q = 1 ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?q ) ?k WHERE { { ?k rdf:type ontology:state . ?m rdf:type ontology:human_settlement . ?m property:capital_of ?k } UNION { ?m property:capital_of ?k . ?k rdf:type ontology:state . ?m rdf:type ontology:city } } GROUP BY ?k } }
[]
state city human settlement
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))
action approx
action union
action find_reverse_tuple_counts
relation P1376
type Q7275
type Q515
action find_reverse_tuple_counts
relation P1376
type Q7275
type Q486972
value 1
[ANSWERS] have around 1 cities and human settlements as their county seat
[[{'concept': 'Q515'}, {'concept': 'Q486972'}], 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?k WHERE { FILTER ( ?q = 1 ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?q ) ?k WHERE { { ?k rdf:type ontology:Q7275 . ?m rdf:type ontology:Q486972 . ?m property:P1376 ?k } UNION { ?m property:P1376 ?k . ?k rdf:type ontology:Q7275 . ?m rdf:type ontology:Q515 } } GROUP BY ?k } }
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 1 cities and human settlements as their county seat
East Germany Ukrainian Soviet Socialist Republic Polish–Lithuanian Commonwealth
action approx
action union
action find_reverse_tuple_counts
relation capital of
type state
type city
action find_reverse_tuple_counts
relation capital of
type state
type human settlement
value 1
[[{'concept': 'city'}, {'concept': 'human settlement'}], 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?k WHERE { FILTER ( ?q = 1 ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?q ) ?k WHERE { { ?k rdf:type ontology:state . ?m rdf:type ontology:human_settlement . ?m property:capital_of ?k } UNION { ?m property:capital_of ?k . ?k rdf:type ontology:state . ?m rdf:type ontology:city } } GROUP BY ?k } }
[]