Simple Question (Direct)
Simple Question
Q5376612
P39
Q12737077
USER
Which occupations were the positions occupied by Endre Skjørestad ?
(Q5376612,P39,c(Q12737077))
action filter_type
action find
entity Q5376612
relation P39
type Q12737077
['Q5376612', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?m WHERE { resource:Q5376612 property:P39 ?m . ?m rdf:type ontology:Q12737077 }
Endre Skjørestad
action filter_type
action find
entity Endre Skjørestad
relation position held
type occupation
['Endre Skjørestad', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?m WHERE { resource:Endre_Skjørestad property:position_held ?m . ?m rdf:type ontology:occupation }
[]
occupation
Q18713976 Q16147743
SYSTEM
deputy member of the Parliament of Norway, State Secretary
Q18713976 Q16147743
(Q5376612,P39,c(Q12737077))
action filter_type
action find
entity Q5376612
relation P39
type Q12737077
[ANSWERS]
['Q5376612', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?m WHERE { resource:Q5376612 property:P39 ?m . ?m rdf:type ontology:Q12737077 }
deputy member of the Parliament of Norway State Secretary
deputy member of the Parliament of Norway State Secretary
action filter_type
action find
entity Endre Skjørestad
relation position held
type occupation
['Endre Skjørestad', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?m WHERE { resource:Endre_Skjørestad property:position_held ?m . ?m rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q18713976 Q16147743
P1001
Q15617994
USER
Which administrative territories apply to jurisdiction of deputy member of the Parliament of Norway and State Secretary ?
(Q18713976,P1001,c(Q15617994)) (Q16147743,P1001,c(Q15617994))
action union
action filter_type
action find
entity Q18713976
relation P1001
type Q15617994
action filter_type
action find
entity Q16147743
relation P1001
type Q15617994
['Q18713976', 'P1001', {'concept': 'Q15617994'}] ['Q16147743', 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { ?s property:P1001 ?z . VALUES ( ?s ) { ( resource:Q18713976 ) ( resource:Q16147743 ) } }
deputy member of the Parliament of Norway State Secretary
action union
action filter_type
action find
entity deputy member of the Parliament of Norway
relation applies to jurisdiction
type designation for an administrative territorial entity
action filter_type
action find
entity State Secretary
relation applies to jurisdiction
type designation for an administrative territorial entity
['deputy member of the Parliament of Norway', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}] ['State Secretary', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { ?s property:applies_to_jurisdiction ?z . VALUES ( ?s ) { ( resource:deputy_member_of_the_Parliament_of_Norway ) ( resource:State_Secretary ) } }
[]
designation for an administrative territorial entity
Q20 Q20
SYSTEM
Norway
Q20 Q20
(Q18713976,P1001,c(Q15617994)) (Q16147743,P1001,c(Q15617994))
action union
action filter_type
action find
entity Q18713976
relation P1001
type Q15617994
action filter_type
action find
entity Q16147743
relation P1001
type Q15617994
[ANSWER]
['Q18713976', 'P1001', {'concept': 'Q15617994'}] ['Q16147743', 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { ?s property:P1001 ?z . VALUES ( ?s ) { ( resource:Q18713976 ) ( resource:Q16147743 ) } }
Norway Norway
Norway Norway
action union
action filter_type
action find
entity deputy member of the Parliament of Norway
relation applies to jurisdiction
type designation for an administrative territorial entity
action filter_type
action find
entity State Secretary
relation applies to jurisdiction
type designation for an administrative territorial entity
['deputy member of the Parliament of Norway', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}] ['State Secretary', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { ?s property:applies_to_jurisdiction ?z . VALUES ( ?s ) { ( resource:deputy_member_of_the_Parliament_of_Norway ) ( resource:State_Secretary ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q20
P551
Q502895
USER
Which people dwell at Norway ?
(c(Q502895),P551,Q20)
action filter_type
action find_reverse
entity Q20
relation P551
type Q502895
[{'concept': 'Q502895'}, 'P551', 'Q20']
SELECT DISTINCT ?e WHERE { ?e property:P551 resource:Q20 . ?e rdf:type ontology:Q502895 }
Norway
action filter_type
action find_reverse
entity Norway
relation residence
type common name
[{'concept': 'common name'}, 'residence', 'Norway']
SELECT DISTINCT ?e WHERE { ?e property:residence resource:Norway . ?e rdf:type ontology:common_name }
[]
common name
Q20720200 Q18643322 Q1707201
SYSTEM
John Edward Winblad, Lisbet Norris, Józef Hecht
Q1707201 Q17114066 Q20720200 Q820323 Q18643322 Q24539219
(c(Q502895),P551,Q20)
action filter_type
action find_reverse
entity Q20
relation P551
type Q502895
[ANSWERS]
[{'concept': 'Q502895'}, 'P551', 'Q20']
SELECT DISTINCT ?e WHERE { ?e property:P551 resource:Q20 . ?e rdf:type ontology:Q502895 }
Józef Hecht Thomas Wærner John Edward Winblad Bergsveinn Birgisson Lisbet Norris Georgi Kostadinov Gekos
John Edward Winblad Lisbet Norris Józef Hecht
action filter_type
action find_reverse
entity Norway
relation residence
type common name
[{'concept': 'common name'}, 'residence', 'Norway']
SELECT DISTINCT ?e WHERE { ?e property:residence resource:Norway . ?e rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q20
P36
Q56061
USER
Which administrative territory is the capital of Norway ?
(Q20,P36,c(Q56061))
action filter_type
action find
entity Q20
relation P36
type Q56061
['Q20', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?n WHERE { resource:Q20 property:P36 ?n . ?n rdf:type ontology:Q56061 }
Norway
action filter_type
action find
entity Norway
relation capital
type administrative territorial entity
['Norway', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Norway property:capital ?n . ?n rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q585
SYSTEM
Oslo
Q585
(Q20,P36,c(Q56061))
action filter_type
action find
entity Q20
relation P36
type Q56061
[ANSWER]
['Q20', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?n WHERE { resource:Q20 property:P36 ?n . ?n rdf:type ontology:Q56061 }
Oslo
Oslo
action filter_type
action find
entity Norway
relation capital
type administrative territorial entity
['Norway', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Norway property:capital ?n . ?n rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q928276
Q56061
USER
And what about Greater Kokstad Local Municipality?
(Q928276,P36,c(Q56061))
action filter_type
action find
entity Q928276
relation P36
type Q56061
['Q928276', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?l WHERE { resource:Q928276 property:P36 ?l . ?l rdf:type ontology:Q56061 }
Greater Kokstad Local Municipality
action filter_type
action find
entity Greater Kokstad Local Municipality
relation capital
type administrative territorial entity
['Greater Kokstad Local Municipality', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Greater_Kokstad_Local_Municipality property:capital ?l . ?l rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1671256
SYSTEM
Kokstad, KwaZulu-Natal
Q1671256
(Q928276,P36,c(Q56061))
action filter_type
action find
entity Q928276
relation P36
type Q56061
[ANSWER]
['Q928276', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?l WHERE { resource:Q928276 property:P36 ?l . ?l rdf:type ontology:Q56061 }
Kokstad, KwaZulu-Natal
Kokstad, KwaZulu-Natal
action filter_type
action find
entity Greater Kokstad Local Municipality
relation capital
type administrative territorial entity
['Greater Kokstad Local Municipality', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Greater_Kokstad_Local_Municipality property:capital ?l . ?l rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P921
Q12737077 Q191067 Q386724
USER
Which occupations were the main subjects of max number of articles and works 's work ?
(c(Q191067)|c(Q386724),P921,c(Q12737077))
action argmax
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q191067
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
[[{'concept': 'Q191067'}, {'concept': 'Q386724'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?l ) ?f WHERE { VALUES ( ?b ) { ( ontology:Q191067 ) ( ontology:Q386724 ) } . ?c rdf:type ?b } GROUP BY ?f } . FILTER ( ?l = ?g ) . { SELECT DISTINCT ( MAX ( ?m ) AS ?g ) { SELECT DISTINCT ( COUNT ( ?i ) AS ?m ) ?k WHERE { { ?i property:P921 ?k . ?k rdf:type ontology:Q12737077 . ?i rdf:type ontology:Q191067 } UNION { ?i property:P921 ?k . ?i rdf:type ontology:Q386724 . ?k rdf:type ontology:Q12737077 } } GROUP BY ?k } } }
action argmax
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type article
action find_reverse_tuple_counts
relation main subject
type occupation
type work
[[{'concept': 'article'}, {'concept': 'work'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?l ) ?f WHERE { VALUES ( ?b ) { ( ontology:article ) ( ontology:work ) } . ?c rdf:type ?b } GROUP BY ?f } . FILTER ( ?l = ?g ) . { SELECT DISTINCT ( MAX ( ?m ) AS ?g ) { SELECT DISTINCT ( COUNT ( ?i ) AS ?m ) ?k WHERE { { ?i property:main_subject ?k . ?k rdf:type ontology:occupation . ?i rdf:type ontology:article } UNION { ?i property:main_subject ?k . ?i rdf:type ontology:work . ?k rdf:type ontology:occupation } } GROUP BY ?k } } }
[]
occupation article work
Q16746569
SYSTEM
high school student
Q16746569
(c(Q191067)|c(Q386724),P921,c(Q12737077))
action argmax
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q191067
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
[ANSWER]
[[{'concept': 'Q191067'}, {'concept': 'Q386724'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?l ) ?f WHERE { VALUES ( ?b ) { ( ontology:Q191067 ) ( ontology:Q386724 ) } . ?c rdf:type ?b } GROUP BY ?f } . FILTER ( ?l = ?g ) . { SELECT DISTINCT ( MAX ( ?m ) AS ?g ) { SELECT DISTINCT ( COUNT ( ?i ) AS ?m ) ?k WHERE { { ?i property:P921 ?k . ?k rdf:type ontology:Q12737077 . ?i rdf:type ontology:Q191067 } UNION { ?i property:P921 ?k . ?i rdf:type ontology:Q386724 . ?k rdf:type ontology:Q12737077 } } GROUP BY ?k } } }
high school student
high school student
action argmax
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type article
action find_reverse_tuple_counts
relation main subject
type occupation
type work
[[{'concept': 'article'}, {'concept': 'work'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?l ) ?f WHERE { VALUES ( ?b ) { ( ontology:article ) ( ontology:work ) } . ?c rdf:type ?b } GROUP BY ?f } . FILTER ( ?l = ?g ) . { SELECT DISTINCT ( MAX ( ?m ) AS ?g ) { SELECT DISTINCT ( COUNT ( ?i ) AS ?m ) ?k WHERE { { ?i property:main_subject ?k . ?k rdf:type ontology:occupation . ?i rdf:type ontology:article } UNION { ?i property:main_subject ?k . ?i rdf:type ontology:work . ?k rdf:type ontology:occupation } } GROUP BY ?k } } }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q2736 Q585
P19 P641
Q502895
USER
Which people have place of birth as Oslo and play association football ?
AND((c(Q502895),P19,Q585), (c(Q502895),P641,Q2736))
action filter_type
action intersection
action find_reverse
entity Q585
relation P19
action find_reverse
entity Q2736
relation P641
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P19', 'Q585'], [{'concept': 'Q502895'}, 'P641', 'Q2736']]}
SELECT DISTINCT ?s WHERE { ?s property:P641 resource:Q2736 . ?s property:P19 resource:Q585 . ?s rdf:type ontology:Q502895 }
association football Oslo
action filter_type
action intersection
action find_reverse
entity Oslo
relation place of birth
action find_reverse
entity association football
relation sport
type common name
{'AND': [[{'concept': 'common name'}, 'place of birth', 'Oslo'], [{'concept': 'common name'}, 'sport', 'association football']]}
SELECT DISTINCT ?s WHERE { ?s property:sport resource:association_football . ?s property:place_of_birth resource:Oslo . ?s rdf:type ontology:common_name }
[]
common name
Q1752515 Q1797120 Q1343788 Q4349257 Q620628 Q1787878 Q7146752 Q317606 Q3992896 Q1368091
SYSTEM
Some of them are Alexander Mathisen, Carl-Erik Torp, Morten Berre, Knut Nesbø, Daniel Fredheim Holm, Kristian Brix, Patrick Holtet, Tom Henning Øvrebø, Tommy Edvardsen, Espen Olsen
Q5639659 Q5045087 Q3842907 Q3816003 Q3437608 Q3815290 Q3640313 Q3437964 Q7517540 Q374784 Q3428408 Q19665716 Q879875 Q19938377 Q1341568 Q16236385 Q7825805 Q369069 Q4680083 Q3437584 Q317606 Q3616172 Q3440423 Q2627976 Q3675678 Q377362 Q3379694 Q3752821 Q4349257 Q1689894 Q3379211 Q3827383 Q3973478 Q1781196 Q2320704 Q1752515 Q203037 Q455949 Q2531588 Q350277 Q176721 Q3990584 Q3379686 Q762246 Q3733079 Q3753524 Q5145451 Q201503 Q3430087 Q3425732 Q779662 Q1800906 Q1343788 Q3978466 Q210955 Q3992896 Q1811447 Q209931 Q3376560 Q3731880 Q436237 Q620628 Q311659 Q453320 Q3603425 Q2456278 Q3428377 Q3814655 Q16852194 Q1780659 Q3843380 Q1785082 Q4011327 Q7794080 Q969350 Q195229 Q686897 Q3984350 Q16236675 Q19405930 Q1771349 Q3373962 Q3881449 Q19375973 Q3731706 Q1773708 Q1633751 Q517078 Q719809 Q2632805 Q3647945 Q434545 Q60555 Q3623560 Q1341662 Q972768 Q16846186 Q11991327 Q11973280 Q3431079 Q3374221 Q3929446 Q3815764 Q6572982 Q1780484 Q11046686 Q1787878 Q194769 Q1797120 Q7825229 Q924738 Q2480506 Q4753829 Q3672746 Q7146752 Q3972818 Q726476 Q2451759 Q1368091 Q13534455 Q3942716 Q3430996 Q350351 Q202693 Q5797456 Q746482 Q720480 Q3745735 Q2626984 Q3432714 Q255624 Q225583 Q3806858
AND((c(Q502895),P19,Q585), (c(Q502895),P641,Q2736))
action filter_type
action intersection
action find_reverse
entity Q585
relation P19
action find_reverse
entity Q2736
relation P641
type Q502895
[ANSWERS]
{'AND': [[{'concept': 'Q502895'}, 'P19', 'Q585'], [{'concept': 'Q502895'}, 'P641', 'Q2736']]}
SELECT DISTINCT ?s WHERE { ?s property:P641 resource:Q2736 . ?s property:P19 resource:Q585 . ?s rdf:type ontology:Q502895 }
Haitam Aleesami Caroline Graham Hansen Mads Dahm Knut Andersen Thomas Wæhler Kim Holmen Birger Madsen Mathis Bolly Simen Møller Kim Deinoff Jørgen Hammer Lars Hjorth Bjørnar Holmvik Fitim Azemi Jan Ove Pedersen Sonni Nattestad Toril Hetland Akerhaugen Dan Eggen Adama Diomande Gøran van den Burgt Tom Henning Øvrebø Andreas Moen Arild Andresen Amund Skiri Christian Michelsen Mike Kjølø Lennart Steffensen Fredrik Dahm Knut Nesbø Jo Inge Berget Chuma Anene Lasse Olsen Stian Sortevik Jørgen Horn Mohammed Fellah Alexander Mathisen Håvard Nielsen Melissa Wiik Christer Basma Adam Larsen Kwarasey André Schei Lindbæk Thomas Berntsen Tom Freddy Aune Kim Larsen Espen Haug Frode Larsen Colin N'kee Jan-Derek Sørensen Gudmund Taksdal Kongshavn Etzaz Hussain Kjetil Wæhler Torstein Andersen Aase Morten Berre Sven Fredrik Stray Harmeet Singh Tommy Edvardsen Dawda Leigh Jan Birkelund Benjamin Dahl Hagen Erling Knudtzon Joshua King Daniel Fredheim Holm Steffen Iversen Marianne Pettersen Abdurahim Laajab Kim André Madsen Ohi Omoijuanfo Kent Bergersen Morten Thorsby Glenn Roberts Magnus Hjulstad Christer George Vidar Davidsen Thomas Solberg André Hansen Tor Egil Johansen Aleksander Midtsian Terje Gulbrandsen Ghayas Zahid Synne Jensen Finn Seemann Fredrik Brustad Ola Dybwad-Olsen Ivan Näsberg Erik Jonvik Øyvind Bolthof Freddy dos Santos André Bergdølmo Frode Kippe Dagfinn Enerly Bård Bjerkeland Solveig Gulbrandsen Daniel Braaten Arne Amundsen Kristian Flittie Onstad Flamur Kastrati Moussa Njie Nicolai Næss Gunn Nyborg Fredrik Gulbrandsen Isak Scheel Ragnar Larsen Kjetil Nilsen Mats Møller Dæhli Branimir Poljac Erik Stock Kristian Brix Omar Elabdellaoui Carl-Erik Torp Tor-Kristian Karlsen Amin Nouri Harald Hennum Anders Jacobsen Ola Kamara Patrick Holtet Stein Gran Mustafa Abdellaoue John Anders Bjørkøy Espen Olsen Marius Høibråten Rune Buer Johansen Kjetil Byfuglien Mohammed Abdellaoue Jo Nesbø Dag Alexander Olsen Fredrik Carlsen Adnan Haidar Finn Gundersen Jonathan Parr Alexander Groven Thomas Holm Mix Diskerud Jan Berg
Alexander Mathisen Carl-Erik Torp Morten Berre Knut Nesbø Daniel Fredheim Holm Kristian Brix Patrick Holtet Tom Henning Øvrebø Tommy Edvardsen Espen Olsen
action filter_type
action intersection
action find_reverse
entity Oslo
relation place of birth
action find_reverse
entity association football
relation sport
type common name
{'AND': [[{'concept': 'common name'}, 'place of birth', 'Oslo'], [{'concept': 'common name'}, 'sport', 'association football']]}
SELECT DISTINCT ?s WHERE { ?s property:sport resource:association_football . ?s property:place_of_birth resource:Oslo . ?s rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1671256
P1376
Q7275
USER
Which state has Kokstad, KwaZulu-Natal as its capital ?
(Q1671256,P1376,c(Q7275))
action filter_type
action find
entity Q1671256
relation P1376
type Q7275
['Q1671256', 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?b WHERE { resource:Q1671256 property:P1376 ?b . ?b rdf:type ontology:Q7275 }
Kokstad, KwaZulu-Natal
action filter_type
action find
entity Kokstad, KwaZulu-Natal
relation capital of
type state
['Kokstad, KwaZulu-Natal', 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?b WHERE { resource:Kokstad,_KwaZulu-Natal property:capital_of ?b . ?b rdf:type ontology:state }
[]
state
Q5157575
SYSTEM
Griqualand East
Q5157575
(Q1671256,P1376,c(Q7275))
action filter_type
action find
entity Q1671256
relation P1376
type Q7275
[ANSWER]
['Q1671256', 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?b WHERE { resource:Q1671256 property:P1376 ?b . ?b rdf:type ontology:Q7275 }
Griqualand East
Griqualand East
action filter_type
action find
entity Kokstad, KwaZulu-Natal
relation capital of
type state
['Kokstad, KwaZulu-Natal', 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?b WHERE { resource:Kokstad,_KwaZulu-Natal property:capital_of ?b . ?b rdf:type ontology:state }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Indirect
P36
Q486972 Q7275
USER
How many states contain lesser number of human settlements as their capital than that state ?
(c(Q7275),P36,c(Q486972))
action count
action less
action find_tuple_counts
relation P36
type Q486972
type Q7275
action count
action filter_type
action find
entity Q5157575
relation P36
type Q486972
[{'concept': 'Q7275'}, 'P36', {'concept': 'Q486972'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?z ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?o ) AS ?g ) WHERE { ?c property:P36 ?o . ?c rdf:type ontology:Q486972 . ?o rdf:type ontology:Q7275 } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?h ) WHERE { resource:Q5157575 property:P36 ?b . ?b rdf:type ontology:Q486972 } } . FILTER ( ?g < ?h ) }
action count
action less
action find_tuple_counts
relation capital
type human settlement
type state
action count
action filter_type
action find
entity Griqualand East
relation capital
type human settlement
[{'concept': 'state'}, 'capital', {'concept': 'human settlement'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?z ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?o ) AS ?g ) WHERE { ?c property:capital ?o . ?c rdf:type ontology:human_settlement . ?o rdf:type ontology:state } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?h ) WHERE { resource:Griqualand_East property:capital ?b . ?b rdf:type ontology:human_settlement } } . FILTER ( ?g < ?h ) }
[]
human settlement state
SYSTEM
0
(c(Q7275),P36,c(Q486972))
action count
action less
action find_tuple_counts
relation P36
type Q486972
type Q7275
action count
action filter_type
action find
entity Q5157575
relation P36
type Q486972
[ANSWER]
[{'concept': 'Q7275'}, 'P36', {'concept': 'Q486972'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?z ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?o ) AS ?g ) WHERE { ?c property:P36 ?o . ?c rdf:type ontology:Q486972 . ?o rdf:type ontology:Q7275 } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?h ) WHERE { resource:Q5157575 property:P36 ?b . ?b rdf:type ontology:Q486972 } } . FILTER ( ?g < ?h ) }
0
action count
action less
action find_tuple_counts
relation capital
type human settlement
type state
action count
action filter_type
action find
entity Griqualand East
relation capital
type human settlement
[{'concept': 'state'}, 'capital', {'concept': 'human settlement'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?z ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?o ) AS ?g ) WHERE { ?c property:capital ?o . ?c rdf:type ontology:human_settlement . ?o rdf:type ontology:state } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?h ) WHERE { resource:Griqualand_East property:capital ?b . ?b rdf:type ontology:human_settlement } } . FILTER ( ?g < ?h ) }
[]