Simple Question (Direct)
Simple Question
Q568421
P7
Q502895
USER
Who has Frederick, Hereditary Prince of Anhalt-Dessau as their sibling ?
(Q568421,P7,c(Q502895))
action filter_type
action find
entity Q568421
relation P7
type Q502895
['Q568421', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { resource:Q568421 property:P7 ?o . ?o rdf:type ontology:Q502895 }
Frederick, Hereditary Prince of Anhalt-Dessau
action filter_type
action find
entity Frederick, Hereditary Prince of Anhalt-Dessau
relation brother
type common name
['Frederick, Hereditary Prince of Anhalt-Dessau', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { resource:Frederick,_Hereditary_Prince_of_Anhalt-Dessau property:brother ?o . ?o rdf:type ontology:common_name }
[]
common name
Q1450018
SYSTEM
Franz Johann George von Waldersee
Q1450018
(Q568421,P7,c(Q502895))
action filter_type
action find
entity Q568421
relation P7
type Q502895
[ANSWER] has Frederick, Hereditary Prince of Anhalt-Dessau as their sibling
['Q568421', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { resource:Q568421 property:P7 ?o . ?o rdf:type ontology:Q502895 }
Franz Johann George von Waldersee
Franz Johann George von Waldersee has Frederick, Hereditary Prince of Anhalt-Dessau as their sibling
Franz Johann George von Waldersee
action filter_type
action find
entity Frederick, Hereditary Prince of Anhalt-Dessau
relation brother
type common name
['Frederick, Hereditary Prince of Anhalt-Dessau', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { resource:Frederick,_Hereditary_Prince_of_Anhalt-Dessau property:brother ?o . ?o rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q568421
P22
Q502895
USER
Which people have Frederick, Hereditary Prince of Anhalt-Dessau as father ?
(c(Q502895),P22,Q568421)
action filter_type
action find_reverse
entity Q568421
relation P22
type Q502895
[{'concept': 'Q502895'}, 'P22', 'Q568421']
SELECT DISTINCT ?y WHERE { ?y property:P22 resource:Q568421 . ?y rdf:type ontology:Q502895 }
Frederick, Hereditary Prince of Anhalt-Dessau
action filter_type
action find_reverse
entity Frederick, Hereditary Prince of Anhalt-Dessau
relation father
type common name
[{'concept': 'common name'}, 'father', 'Frederick, Hereditary Prince of Anhalt-Dessau']
SELECT DISTINCT ?y WHERE { ?y property:father resource:Frederick,_Hereditary_Prince_of_Anhalt-Dessau . ?y rdf:type ontology:common_name }
[]
common name
Q545152 Q471206 Q5637518
SYSTEM
Leopold IV, Duke of Anhalt, Prince Frederick Augustus of Anhalt-Dessau, Louise of Anhalt-Dessau
Q5637518 Q471206 Q1506551 Q2575786 Q456163 Q545152
(c(Q502895),P22,Q568421)
action filter_type
action find_reverse
entity Q568421
relation P22
type Q502895
[ANSWERS] have Frederick, Hereditary Prince of Anhalt-Dessau as father
[{'concept': 'Q502895'}, 'P22', 'Q568421']
SELECT DISTINCT ?y WHERE { ?y property:P22 resource:Q568421 . ?y rdf:type ontology:Q502895 }
Louise of Anhalt-Dessau Prince Frederick Augustus of Anhalt-Dessau Prince George Bernhard of Anhalt-Dessau Wilhelm von Anhalt-Dessau Auguste of Anhalt-Dessau Leopold IV, Duke of Anhalt
Leopold IV, Duke of Anhalt, Prince Frederick Augustus of Anhalt-Dessau and Louise of Anhalt-Dessau have Frederick, Hereditary Prince of Anhalt-Dessau as father
Leopold IV, Duke of Anhalt Prince Frederick Augustus of Anhalt-Dessau Louise of Anhalt-Dessau
action filter_type
action find_reverse
entity Frederick, Hereditary Prince of Anhalt-Dessau
relation father
type common name
[{'concept': 'common name'}, 'father', 'Frederick, Hereditary Prince of Anhalt-Dessau']
SELECT DISTINCT ?y WHERE { ?y property:father resource:Frederick,_Hereditary_Prince_of_Anhalt-Dessau . ?y rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q545152 Q471206 Q5637518
P7
Q502895
USER
Which people are the brothers of Leopold IV, Duke of Anhalt, Prince Frederick Augustus of Anhalt-Dessau and Louise of Anhalt-Dessau ?
(Q545152,P7,c(Q502895)) (Q471206,P7,c(Q502895)) (Q5637518,P7,c(Q502895))
action union
action filter_type
action find
entity Q545152
relation P7
type Q502895
action filter_type
action find
entity Q471206
relation P7
type Q502895
action filter_type
action find
entity Q5637518
relation P7
type Q502895
['Q545152', 'P7', {'concept': 'Q502895'}] ['Q471206', 'P7', {'concept': 'Q502895'}] ['Q5637518', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { VALUES ( ?d ) { ( resource:Q545152 ) ( resource:Q471206 ) } . ?d property:P7 ?a }
Leopold IV, Duke of Anhalt Prince Frederick Augustus of Anhalt-Dessau Louise of Anhalt-Dessau
action union
action filter_type
action find
entity Leopold IV, Duke of Anhalt
relation brother
type common name
action filter_type
action find
entity Prince Frederick Augustus of Anhalt-Dessau
relation brother
type common name
action filter_type
action find
entity Louise of Anhalt-Dessau
relation brother
type common name
['Leopold IV, Duke of Anhalt', 'brother', {'concept': 'common name'}] ['Prince Frederick Augustus of Anhalt-Dessau', 'brother', {'concept': 'common name'}] ['Louise of Anhalt-Dessau', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { VALUES ( ?d ) { ( resource:Leopold_IV,_Duke_of_Anhalt ) ( resource:Prince_Frederick_Augustus_of_Anhalt-Dessau ) } . ?d property:brother ?a }
[]
common name
Q545152 Q545152 Q471206
SYSTEM
Prince Frederick Augustus of Anhalt-Dessau for 3rd, Leopold IV, Duke of Anhalt for 1st, 2nd
Q1506551 Q471206 Q2575786 Q1506551 Q545152 Q2575786 Q1506551 Q545152 Q471206 Q2575786
(Q545152,P7,c(Q502895)) (Q471206,P7,c(Q502895)) (Q5637518,P7,c(Q502895))
action union
action filter_type
action find
entity Q545152
relation P7
type Q502895
action filter_type
action find
entity Q471206
relation P7
type Q502895
action filter_type
action find
entity Q5637518
relation P7
type Q502895
[ANSWERS]
['Q545152', 'P7', {'concept': 'Q502895'}] ['Q471206', 'P7', {'concept': 'Q502895'}] ['Q5637518', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { VALUES ( ?d ) { ( resource:Q545152 ) ( resource:Q471206 ) } . ?d property:P7 ?a }
Prince George Bernhard of Anhalt-Dessau Prince Frederick Augustus of Anhalt-Dessau Wilhelm von Anhalt-Dessau Prince George Bernhard of Anhalt-Dessau Leopold IV, Duke of Anhalt Wilhelm von Anhalt-Dessau Prince George Bernhard of Anhalt-Dessau Leopold IV, Duke of Anhalt Prince Frederick Augustus of Anhalt-Dessau Wilhelm von Anhalt-Dessau
Leopold IV, Duke of Anhalt, Leopold IV, Duke of Anhalt and Prince Frederick Augustus of Anhalt-Dessau are the brothers of Leopold IV, Duke of Anhalt, Prince Frederick Augustus of Anhalt-Dessau and Louise of Anhalt-Dessau
Leopold IV, Duke of Anhalt Leopold IV, Duke of Anhalt Prince Frederick Augustus of Anhalt-Dessau
action union
action filter_type
action find
entity Leopold IV, Duke of Anhalt
relation brother
type common name
action filter_type
action find
entity Prince Frederick Augustus of Anhalt-Dessau
relation brother
type common name
action filter_type
action find
entity Louise of Anhalt-Dessau
relation brother
type common name
['Leopold IV, Duke of Anhalt', 'brother', {'concept': 'common name'}] ['Prince Frederick Augustus of Anhalt-Dessau', 'brother', {'concept': 'common name'}] ['Louise of Anhalt-Dessau', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { VALUES ( ?d ) { ( resource:Leopold_IV,_Duke_of_Anhalt ) ( resource:Prince_Frederick_Augustus_of_Anhalt-Dessau ) } . ?d property:brother ?a }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q545152
P26
Q502895
USER
Which person is the life partner of Leopold IV, Duke of Anhalt ?
(c(Q502895),P26,Q545152)
action filter_type
action find
entity Q545152
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q545152']
SELECT DISTINCT ?a WHERE { resource:Q545152 property:P26 ?a . ?a rdf:type ontology:Q502895 }
Leopold IV, Duke of Anhalt
action filter_type
action find
entity Leopold IV, Duke of Anhalt
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Leopold IV, Duke of Anhalt']
SELECT DISTINCT ?a WHERE { resource:Leopold_IV,_Duke_of_Anhalt property:spouse ?a . ?a rdf:type ontology:common_name }
[]
common name
Q64225
SYSTEM
Princess Frederica Wilhelmina of Prussia
Q64225
(c(Q502895),P26,Q545152)
action filter_type
action find
entity Q545152
relation P26
type Q502895
[ANSWER] is the life partner of Leopold IV, Duke of Anhalt
[{'concept': 'Q502895'}, 'P26', 'Q545152']
SELECT DISTINCT ?a WHERE { resource:Q545152 property:P26 ?a . ?a rdf:type ontology:Q502895 }
Princess Frederica Wilhelmina of Prussia
Princess Frederica Wilhelmina of Prussia is the life partner of Leopold IV, Duke of Anhalt
Princess Frederica Wilhelmina of Prussia
action filter_type
action find
entity Leopold IV, Duke of Anhalt
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Leopold IV, Duke of Anhalt']
SELECT DISTINCT ?a WHERE { resource:Leopold_IV,_Duke_of_Anhalt property:spouse ?a . ?a rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q545152
P40
Q502895
USER
Whose child are Leopold IV, Duke of Anhalt ?
(c(Q502895),P40,Q545152)
action filter_type
action find_reverse
entity Q545152
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q545152']
SELECT DISTINCT ?l WHERE { ?l property:P40 resource:Q545152 . ?l rdf:type ontology:Q502895 }
Leopold IV, Duke of Anhalt
action filter_type
action find_reverse
entity Leopold IV, Duke of Anhalt
relation child
type common name
[{'concept': 'common name'}, 'child', 'Leopold IV, Duke of Anhalt']
SELECT DISTINCT ?l WHERE { ?l property:child resource:Leopold_IV,_Duke_of_Anhalt . ?l rdf:type ontology:common_name }
[]
common name
Q568421 Q299794
SYSTEM
Frederick, Hereditary Prince of Anhalt-Dessau, Landgravine Amalie of Hesse-Homburg
Q568421 Q299794
(c(Q502895),P40,Q545152)
action filter_type
action find_reverse
entity Q545152
relation P40
type Q502895
Prince [ANSWERS] are Leopold IV, Duke of Anhalt
[{'concept': 'Q502895'}, 'P40', 'Q545152']
SELECT DISTINCT ?l WHERE { ?l property:P40 resource:Q545152 . ?l rdf:type ontology:Q502895 }
Frederick, Hereditary Prince of Anhalt-Dessau Landgravine Amalie of Hesse-Homburg
Prince Frederick, Hereditary Prince of Anhalt-Dessau and Landgravine Amalie of Hesse-Homburg are Leopold IV, Duke of Anhalt
Frederick, Hereditary Prince of Anhalt-Dessau Landgravine Amalie of Hesse-Homburg
action filter_type
action find_reverse
entity Leopold IV, Duke of Anhalt
relation child
type common name
[{'concept': 'common name'}, 'child', 'Leopold IV, Duke of Anhalt']
SELECT DISTINCT ?l WHERE { ?l property:child resource:Leopold_IV,_Duke_of_Anhalt . ?l rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q568421 Q299794
P40
Q502895
USER
Which people have Frederick, Hereditary Prince of Anhalt-Dessau and Landgravine Amalie of Hesse-Homburg as an offspring ?
(c(Q502895),P40,Q568421) (c(Q502895),P40,Q299794)
action union
action filter_type
action find_reverse
entity Q568421
relation P40
type Q502895
action filter_type
action find_reverse
entity Q299794
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q568421'] [{'concept': 'Q502895'}, 'P40', 'Q299794']
SELECT DISTINCT ?f WHERE { ?f property:P40 ?z . VALUES ( ?z ) { ( resource:Q299794 ) ( resource:Q568421 ) } }
Frederick, Hereditary Prince of Anhalt-Dessau Landgravine Amalie of Hesse-Homburg
action union
action filter_type
action find_reverse
entity Frederick, Hereditary Prince of Anhalt-Dessau
relation child
type common name
action filter_type
action find_reverse
entity Landgravine Amalie of Hesse-Homburg
relation child
type common name
[{'concept': 'common name'}, 'child', 'Frederick, Hereditary Prince of Anhalt-Dessau'] [{'concept': 'common name'}, 'child', 'Landgravine Amalie of Hesse-Homburg']
SELECT DISTINCT ?f WHERE { ?f property:child ?z . VALUES ( ?z ) { ( resource:Landgravine_Amalie_of_Hesse-Homburg ) ( resource:Frederick,_Hereditary_Prince_of_Anhalt-Dessau ) } }
[]
common name
Q458358 Q214050 Q62144
SYSTEM
Landgravine Caroline of Hesse-Darmstadt, Frederick V, Landgrave of Hesse-Homburg, Leopold III, Duke of Anhalt-Dessau
Q62144 Q69993 Q214050 Q458358
(c(Q502895),P40,Q568421) (c(Q502895),P40,Q299794)
action union
action filter_type
action find_reverse
entity Q568421
relation P40
type Q502895
action filter_type
action find_reverse
entity Q299794
relation P40
type Q502895
[ANSWERS]
[{'concept': 'Q502895'}, 'P40', 'Q568421'] [{'concept': 'Q502895'}, 'P40', 'Q299794']
SELECT DISTINCT ?f WHERE { ?f property:P40 ?z . VALUES ( ?z ) { ( resource:Q299794 ) ( resource:Q568421 ) } }
Leopold III, Duke of Anhalt-Dessau Louise of Brandenburg-Schwedt Frederick V, Landgrave of Hesse-Homburg Landgravine Caroline of Hesse-Darmstadt
Landgravine Caroline of Hesse-Darmstadt, Frederick V, Landgrave of Hesse-Homburg and Leopold III, Duke of Anhalt-Dessau have Frederick, Hereditary Prince of Anhalt-Dessau and Landgravine Amalie of Hesse-Homburg as an offspring
Landgravine Caroline of Hesse-Darmstadt Frederick V, Landgrave of Hesse-Homburg Leopold III, Duke of Anhalt-Dessau
action union
action filter_type
action find_reverse
entity Frederick, Hereditary Prince of Anhalt-Dessau
relation child
type common name
action filter_type
action find_reverse
entity Landgravine Amalie of Hesse-Homburg
relation child
type common name
[{'concept': 'common name'}, 'child', 'Frederick, Hereditary Prince of Anhalt-Dessau'] [{'concept': 'common name'}, 'child', 'Landgravine Amalie of Hesse-Homburg']
SELECT DISTINCT ?f WHERE { ?f property:child ?z . VALUES ( ?z ) { ( resource:Landgravine_Amalie_of_Hesse-Homburg ) ( resource:Frederick,_Hereditary_Prince_of_Anhalt-Dessau ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q568421
P20
Q486972
USER
Where did Frederick, Hereditary Prince of Anhalt-Dessau die ?
(Q568421,P20,c(Q486972))
action filter_type
action find
entity Q568421
relation P20
type Q486972
['Q568421', 'P20', {'concept': 'Q486972'}]
SELECT DISTINCT ?y WHERE { resource:Q568421 property:P20 ?y . ?y rdf:type ontology:Q486972 }
Frederick, Hereditary Prince of Anhalt-Dessau
action filter_type
action find
entity Frederick, Hereditary Prince of Anhalt-Dessau
relation place of death
type human settlement
['Frederick, Hereditary Prince of Anhalt-Dessau', 'place of death', {'concept': 'human settlement'}]
SELECT DISTINCT ?y WHERE { resource:Frederick,_Hereditary_Prince_of_Anhalt-Dessau property:place_of_death ?y . ?y rdf:type ontology:human_settlement }
[]
human settlement
Q487070
SYSTEM
Dessau
Q487070
(Q568421,P20,c(Q486972))
action filter_type
action find
entity Q568421
relation P20
type Q486972
Frederick , Hereditary Prince of Anhalt-[ANSWER] died in [ANSWER]
['Q568421', 'P20', {'concept': 'Q486972'}]
SELECT DISTINCT ?y WHERE { resource:Q568421 property:P20 ?y . ?y rdf:type ontology:Q486972 }
Dessau
Frederick , Hereditary Prince of Anhalt-Dessau died in Dessau
Dessau
action filter_type
action find
entity Frederick, Hereditary Prince of Anhalt-Dessau
relation place of death
type human settlement
['Frederick, Hereditary Prince of Anhalt-Dessau', 'place of death', {'concept': 'human settlement'}]
SELECT DISTINCT ?y WHERE { resource:Frederick,_Hereditary_Prince_of_Anhalt-Dessau property:place_of_death ?y . ?y rdf:type ontology:human_settlement }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q3161438
Q486972
USER
And also tell me about Jimmy Swinnerton?
(Q3161438,P20,c(Q486972))
action filter_type
action find
entity Q3161438
relation P20
type Q486972
['Q3161438', 'P20', {'concept': 'Q486972'}]
SELECT DISTINCT ?k WHERE { resource:Q3161438 property:P20 ?k . ?k rdf:type ontology:Q486972 }
Jimmy Swinnerton
action filter_type
action find
entity Jimmy Swinnerton
relation place of death
type human settlement
['Jimmy Swinnerton', 'place of death', {'concept': 'human settlement'}]
SELECT DISTINCT ?k WHERE { resource:Jimmy_Swinnerton property:place_of_death ?k . ?k rdf:type ontology:human_settlement }
[]
human settlement
Q488004
SYSTEM
Palm Springs
Q488004
(Q3161438,P20,c(Q486972))
action filter_type
action find
entity Q3161438
relation P20
type Q486972
[ANSWER]
['Q3161438', 'P20', {'concept': 'Q486972'}]
SELECT DISTINCT ?k WHERE { resource:Q3161438 property:P20 ?k . ?k rdf:type ontology:Q486972 }
Palm Springs
Palm Springs
action filter_type
action find
entity Jimmy Swinnerton
relation place of death
type human settlement
['Jimmy Swinnerton', 'place of death', {'concept': 'human settlement'}]
SELECT DISTINCT ?k WHERE { resource:Jimmy_Swinnerton property:place_of_death ?k . ?k rdf:type ontology:human_settlement }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q488004 Q647605 Q4918310
P17
Q15617994
USER
Is that human settlement present in Berghausen and Bismarck Public Schools ?
(Q488004,P17,Q647605) (Q488004,P17,Q4918310)
action is_in
entity Q488004
action intersection
action find_reverse
entity Q647605
relation P17
action find_reverse
entity Q4918310
relation P17
['Q488004', 'P17', 'Q647605'] ['Q488004', 'P17', 'Q4918310']
ASK WHERE { resource:Q488004 property:P17 resource:Q647605 . resource:Q488004 property:P17 resource:Q4918310 }
Palm Springs Berghausen Bismarck Public Schools
action is_in
entity Palm Springs
action intersection
action find_reverse
entity Berghausen
relation country
action find_reverse
entity Bismarck Public Schools
relation country
['Palm Springs', 'country', 'Berghausen'] ['Palm Springs', 'country', 'Bismarck Public Schools']
ASK WHERE { resource:Palm_Springs property:country resource:Berghausen . resource:Palm_Springs property:country resource:Bismarck_Public_Schools }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q488004,P17,Q647605) (Q488004,P17,Q4918310)
action is_in
entity Q488004
action intersection
action find_reverse
entity Q647605
relation P17
action find_reverse
entity Q4918310
relation P17
[ANSWER]
['Q488004', 'P17', 'Q647605'] ['Q488004', 'P17', 'Q4918310']
ASK WHERE { resource:Q488004 property:P17 resource:Q647605 . resource:Q488004 property:P17 resource:Q4918310 }
No
action is_in
entity Palm Springs
action intersection
action find_reverse
entity Berghausen
relation country
action find_reverse
entity Bismarck Public Schools
relation country
['Palm Springs', 'country', 'Berghausen'] ['Palm Springs', 'country', 'Bismarck Public Schools']
ASK WHERE { resource:Palm_Springs property:country resource:Berghausen . resource:Palm_Springs property:country resource:Bismarck_Public_Schools }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q62144 Q183
P27
Q1048835
USER
Is Leopold III, Duke of Anhalt-Dessau a civilian of Germany ?
(Q62144,P27,Q183)
action is_in
entity Q183
action find
entity Q62144
relation P27
['Q62144', 'P27', 'Q183']
ASK WHERE { resource:Q62144 property:P27 resource:Q183 }
Leopold III, Duke of Anhalt-Dessau Germany
action is_in
entity Germany
action find
entity Leopold III, Duke of Anhalt-Dessau
relation country of citizenship
['Leopold III, Duke of Anhalt-Dessau', 'country of citizenship', 'Germany']
ASK WHERE { resource:Leopold_III,_Duke_of_Anhalt-Dessau property:country_of_citizenship resource:Germany }
[]
political territorial entity
SYSTEM
YES
(Q62144,P27,Q183)
action is_in
entity Q183
action find
entity Q62144
relation P27
[ANSWER]
['Q62144', 'P27', 'Q183']
ASK WHERE { resource:Q62144 property:P27 resource:Q183 }
Yes
action is_in
entity Germany
action find
entity Leopold III, Duke of Anhalt-Dessau
relation country of citizenship
['Leopold III, Duke of Anhalt-Dessau', 'country of citizenship', 'Germany']
ASK WHERE { resource:Leopold_III,_Duke_of_Anhalt-Dessau property:country_of_citizenship resource:Germany }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P248
Q43229 Q4894405 Q502895
USER
How many people have been stated in approximately 1 organizations and journalism genres ?
(c(Q502895),P248,c(Q43229)|c(Q4894405))
action count
action approx
action union
action find_tuple_counts
relation P248
type Q502895
type Q43229
action find_tuple_counts
relation P248
type Q502895
type Q4894405
value 1
[{'concept': 'Q502895'}, 'P248', [{'concept': 'Q43229'}, {'concept': 'Q4894405'}]]
SELECT DISTINCT ( COUNT ( ?d ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?x ) ?d WHERE { ?a rdf:type ?p . VALUES ( ?p ) { ( ontology:Q43229 ) ( ontology:Q4894405 ) } } GROUP BY ?d } . FILTER ( ?x = 1 ) }
action count
action approx
action union
action find_tuple_counts
relation stated in
type common name
type organization
action find_tuple_counts
relation stated in
type common name
type journalism genre
value 1
[{'concept': 'common name'}, 'stated in', [{'concept': 'organization'}, {'concept': 'journalism genre'}]]
SELECT DISTINCT ( COUNT ( ?d ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?x ) ?d WHERE { ?a rdf:type ?p . VALUES ( ?p ) { ( ontology:organization ) ( ontology:journalism_genre ) } } GROUP BY ?d } . FILTER ( ?x = 1 ) }
[]
organization journalism genre common name
SYSTEM
13
Q5232852 Q16106932 Q16060029 Q8004400 Q16031260 Q6221420 Q17308862 Q6228730 Q6263007 Q16027113 Q5144957 Q6251897 Q5537322
(c(Q502895),P248,c(Q43229)|c(Q4894405))
action count
action approx
action union
action find_tuple_counts
relation P248
type Q502895
type Q43229
action find_tuple_counts
relation P248
type Q502895
type Q4894405
value 1
[ANSWER]
[{'concept': 'Q502895'}, 'P248', [{'concept': 'Q43229'}, {'concept': 'Q4894405'}]]
SELECT DISTINCT ( COUNT ( ?d ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?x ) ?d WHERE { ?a rdf:type ?p . VALUES ( ?p ) { ( ontology:Q43229 ) ( ontology:Q4894405 ) } } GROUP BY ?d } . FILTER ( ?x = 1 ) }
David Davies David Evans David Davies William Anderson John Murphy John Bell Colin Campbell John Davies John Ward John Roberts Colin Campbell John Parker George Brown
13
action count
action approx
action union
action find_tuple_counts
relation stated in
type common name
type organization
action find_tuple_counts
relation stated in
type common name
type journalism genre
value 1
[{'concept': 'common name'}, 'stated in', [{'concept': 'organization'}, {'concept': 'journalism genre'}]]
SELECT DISTINCT ( COUNT ( ?d ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?x ) ?d WHERE { ?a rdf:type ?p . VALUES ( ?p ) { ( ontology:organization ) ( ontology:journalism_genre ) } } GROUP BY ?d } . FILTER ( ?x = 1 ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q557027 Q4918310
P47 P17
Q15617994
USER
Which administrative territories are Bismarck Public Schools present in or are adjacent to Karby ?
OR((Q4918310,P17,c(Q15617994)), (Q557027,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q4918310
relation P17
action find
entity Q557027
relation P47
type Q15617994
{'OR': [['Q4918310', 'P17', {'concept': 'Q15617994'}], ['Q557027', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q15617994 . { { resource:Q4918310 property:P17 ?s } UNION { resource:Q557027 property:P47 ?s } } }
Karby Bismarck Public Schools
action filter_type
action union
action find
entity Bismarck Public Schools
relation country
action find
entity Karby
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Bismarck Public Schools', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Karby', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Bismarck_Public_Schools property:country ?s } UNION { resource:Karby property:shares_border_with ?s } } }
[]
designation for an administrative territorial entity
Q636651 Q516567 Q30 Q261524 Q565388
SYSTEM
Brodersby, Kappeln, United States of America, Dörphof, Winnemark
Q636651 Q516567 Q30 Q261524 Q565388
OR((Q4918310,P17,c(Q15617994)), (Q557027,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q4918310
relation P17
action find
entity Q557027
relation P47
type Q15617994
Or are adjacent to Karby Bismarck Public Schools are the [ANSWERS]
{'OR': [['Q4918310', 'P17', {'concept': 'Q15617994'}], ['Q557027', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q15617994 . { { resource:Q4918310 property:P17 ?s } UNION { resource:Q557027 property:P47 ?s } } }
Brodersby Kappeln United States of America Dörphof Winnemark
Or are adjacent to Karby Bismarck Public Schools are the Brodersby, Kappeln, United States of America, Dörphof and Winnemark
Brodersby Kappeln United States of America Dörphof Winnemark
action filter_type
action union
action find
entity Bismarck Public Schools
relation country
action find
entity Karby
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Bismarck Public Schools', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Karby', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Bismarck_Public_Schools property:country ?s } UNION { resource:Karby property:shares_border_with ?s } } }
[]