Simple Question (Direct)
Simple Question
Q3088805
P58
Q502895
USER
Which person wrote the script for Hilda Crane ?
(Q3088805,P58,c(Q502895))
action filter_type
action find
entity Q3088805
relation P58
type Q502895
['Q3088805', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { resource:Q3088805 property:P58 ?w . ?w rdf:type ontology:Q502895 }
Hilda Crane
action filter_type
action find
entity Hilda Crane
relation screenwriter
type common name
['Hilda Crane', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { resource:Hilda_Crane property:screenwriter ?w . ?w rdf:type ontology:common_name }
[]
common name
Q1638261
SYSTEM
Philip Dunne
Q1638261
(Q3088805,P58,c(Q502895))
action filter_type
action find
entity Q3088805
relation P58
type Q502895
The [ANSWER] wrote the script for Hilda Crane
['Q3088805', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { resource:Q3088805 property:P58 ?w . ?w rdf:type ontology:Q502895 }
Philip Dunne
The Philip Dunne wrote the script for Hilda Crane
Philip Dunne
action filter_type
action find
entity Hilda Crane
relation screenwriter
type common name
['Hilda Crane', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { resource:Hilda_Crane property:screenwriter ?w . ?w rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3088805
P161
Q502895
USER
Which people starred in Hilda Crane ?
(Q3088805,P161,c(Q502895))
action filter_type
action find
entity Q3088805
relation P161
type Q502895
['Q3088805', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q502895 . resource:Q3088805 property:P161 ?o }
Hilda Crane
action filter_type
action find
entity Hilda Crane
relation cast member
type common name
['Hilda Crane', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:common_name . resource:Hilda_Crane property:cast_member ?o }
[]
common name
Q107656 Q534601 Q1557542
SYSTEM
Jean Simmons, Jean-Pierre Aumont, Guy Madison
Q3088215 Q1557542 Q107656 Q534601 Q3061390
(Q3088805,P161,c(Q502895))
action filter_type
action find
entity Q3088805
relation P161
type Q502895
[ANSWERS] starred in Hilda Crane
['Q3088805', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q502895 . resource:Q3088805 property:P161 ?o }
Peggy Knudsen Guy Madison Jean Simmons Jean-Pierre Aumont Evelyn Varden
Jean Simmons, Jean-Pierre Aumont and Guy Madison starred in Hilda Crane
Jean Simmons Jean-Pierre Aumont Guy Madison
action filter_type
action find
entity Hilda Crane
relation cast member
type common name
['Hilda Crane', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:common_name . resource:Hilda_Crane property:cast_member ?o }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3088805
P86
Q502895
USER
Who did the compostion for Hilda Crane ?
(Q3088805,P86,c(Q502895))
action filter_type
action find
entity Q3088805
relation P86
type Q502895
['Q3088805', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?v WHERE { resource:Q3088805 property:P86 ?v . ?v rdf:type ontology:Q502895 }
Hilda Crane
action filter_type
action find
entity Hilda Crane
relation composer
type common name
['Hilda Crane', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?v WHERE { resource:Hilda_Crane property:composer ?v . ?v rdf:type ontology:common_name }
[]
common name
Q1176253
SYSTEM
David Raksin
Q1176253
(Q3088805,P86,c(Q502895))
action filter_type
action find
entity Q3088805
relation P86
type Q502895
[ANSWER] did the compostion for Hilda Crane
['Q3088805', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?v WHERE { resource:Q3088805 property:P86 ?v . ?v rdf:type ontology:Q502895 }
David Raksin
David Raksin did the compostion for Hilda Crane
David Raksin
action filter_type
action find
entity Hilda Crane
relation composer
type common name
['Hilda Crane', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?v WHERE { resource:Hilda_Crane property:composer ?v . ?v rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P108
Q163740 Q3918
USER
How many nonprofit organizations and universities are the employers of that person ?
(Q1176253,P108,c(Q163740)) (Q1176253,P108,c(Q3918)) (Q1176253,P108,c(Q163740)) (Q1176253,P108,c(Q3918))
action count
action union
action filter_type
action find
entity Q1176253
relation P108
type Q163740
action filter_type
action find
entity Q1176253
relation P108
type Q3918
['Q1176253', 'P108', {'concept': 'Q163740'}] ['Q1176253', 'P108', {'concept': 'Q3918'}] ['Q1176253', 'P108', {'concept': 'Q163740'}] ['Q1176253', 'P108', {'concept': 'Q3918'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?m ) WHERE { { ?x rdf:type ontology:Q3918 . resource:Q1176253 property:P108 ?x } UNION { ?x rdf:type ontology:Q163740 . resource:Q1176253 property:P108 ?x } }
action count
action union
action filter_type
action find
entity David Raksin
relation employer
type nonprofit organization
action filter_type
action find
entity David Raksin
relation employer
type university
['David Raksin', 'employer', {'concept': 'nonprofit organization'}] ['David Raksin', 'employer', {'concept': 'university'}] ['David Raksin', 'employer', {'concept': 'nonprofit organization'}] ['David Raksin', 'employer', {'concept': 'university'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?m ) WHERE { { ?x rdf:type ontology:university . resource:David_Raksin property:employer ?x } UNION { ?x rdf:type ontology:nonprofit_organization . resource:David_Raksin property:employer ?x } }
[]
nonprofit organization university
SYSTEM
1 nonprofit organizations and 1 universities
Q4614 Q174710
(Q1176253,P108,c(Q163740)) (Q1176253,P108,c(Q3918)) (Q1176253,P108,c(Q163740)) (Q1176253,P108,c(Q3918))
action count
action union
action filter_type
action find
entity Q1176253
relation P108
type Q163740
action filter_type
action find
entity Q1176253
relation P108
type Q3918
[ANSWER]
['Q1176253', 'P108', {'concept': 'Q163740'}] ['Q1176253', 'P108', {'concept': 'Q3918'}] ['Q1176253', 'P108', {'concept': 'Q163740'}] ['Q1176253', 'P108', {'concept': 'Q3918'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?m ) WHERE { { ?x rdf:type ontology:Q3918 . resource:Q1176253 property:P108 ?x } UNION { ?x rdf:type ontology:Q163740 . resource:Q1176253 property:P108 ?x } }
University of Southern California University of California, Los Angeles
1 nonprofit organizations and 1 universities
action count
action union
action filter_type
action find
entity David Raksin
relation employer
type nonprofit organization
action filter_type
action find
entity David Raksin
relation employer
type university
['David Raksin', 'employer', {'concept': 'nonprofit organization'}] ['David Raksin', 'employer', {'concept': 'university'}] ['David Raksin', 'employer', {'concept': 'nonprofit organization'}] ['David Raksin', 'employer', {'concept': 'university'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?m ) WHERE { { ?x rdf:type ontology:university . resource:David_Raksin property:employer ?x } UNION { ?x rdf:type ontology:nonprofit_organization . resource:David_Raksin property:employer ?x } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q4799348 Q1176253
P20
Q486972
USER
Which human settlements did David Raksin or Arthur Kent White expire ?
OR((Q1176253,P20,c(Q486972)), (Q4799348,P20,c(Q486972)))
action filter_type
action union
action find
entity Q1176253
relation P20
action find
entity Q4799348
relation P20
type Q486972
{'OR': [['Q1176253', 'P20', {'concept': 'Q486972'}], ['Q4799348', 'P20', {'concept': 'Q486972'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Q1176253 property:P20 ?p } UNION { resource:Q4799348 property:P20 ?p } } . ?p rdf:type ontology:Q486972 }
Arthur Kent White David Raksin
action filter_type
action union
action find
entity David Raksin
relation place of death
action find
entity Arthur Kent White
relation place of death
type human settlement
{'OR': [['David Raksin', 'place of death', {'concept': 'human settlement'}], ['Arthur Kent White', 'place of death', {'concept': 'human settlement'}]]}
SELECT DISTINCT ?p WHERE { { { resource:David_Raksin property:place_of_death ?p } UNION { resource:Arthur_Kent_White property:place_of_death ?p } } . ?p rdf:type ontology:human_settlement }
[]
human settlement
Q769446 Q3473047
SYSTEM
Van Nuys, Zarephath
Q769446 Q3473047
OR((Q1176253,P20,c(Q486972)), (Q4799348,P20,c(Q486972)))
action filter_type
action union
action find
entity Q1176253
relation P20
action find
entity Q4799348
relation P20
type Q486972
David Raksin or Arthur Kent White expired [ANSWERS]
{'OR': [['Q1176253', 'P20', {'concept': 'Q486972'}], ['Q4799348', 'P20', {'concept': 'Q486972'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Q1176253 property:P20 ?p } UNION { resource:Q4799348 property:P20 ?p } } . ?p rdf:type ontology:Q486972 }
Van Nuys Zarephath
David Raksin or Arthur Kent White expired Van Nuys and Zarephath
Van Nuys Zarephath
action filter_type
action union
action find
entity David Raksin
relation place of death
action find
entity Arthur Kent White
relation place of death
type human settlement
{'OR': [['David Raksin', 'place of death', {'concept': 'human settlement'}], ['Arthur Kent White', 'place of death', {'concept': 'human settlement'}]]}
SELECT DISTINCT ?p WHERE { { { resource:David_Raksin property:place_of_death ?p } UNION { resource:Arthur_Kent_White property:place_of_death ?p } } . ?p rdf:type ontology:human_settlement }
[]
Clarification
Comparative|More/Less|Mult. entity type|Indirect
P159
Q486972 Q7210356 Q1269299
USER
Which human settlements are the HQ of greater number of political organizations or business organizations than that human settlement ?
(c(Q7210356)|c(Q1269299),P159,c(Q486972))
[[{'concept': 'Q7210356'}, {'concept': 'Q1269299'}], 'P159', {'concept': 'Q486972'}]
SELECT DISTINCT ?y WHERE { { VALUES ( ?r ) { ( ?z ) ( ?x ) } . ?r property:P159 ?y } . ?z rdf:type ontology:Q7210356 . ?y rdf:type ontology:Q486972 . ?x rdf:type ontology:Q1269299 }
[[{'concept': 'political organization'}, {'concept': 'type of business entity'}], 'headquarters location', {'concept': 'human settlement'}]
SELECT DISTINCT ?y WHERE { { VALUES ( ?r ) { ( ?z ) ( ?x ) } . ?r property:headquarters_location ?y } . ?z rdf:type ontology:political_organization . ?y rdf:type ontology:human_settlement . ?x rdf:type ontology:type_of_business_entity }
[]
human settlement political organization type of business entity
Comparative|More/Less|Mult. entity type|Clarification
Q3473047
SYSTEM
Did you mean Zarephath ?
(c(Q7210356)|c(Q1269299),P159,c(Q486972))
[ANSWER]
[[{'concept': 'Q7210356'}, {'concept': 'Q1269299'}], 'P159', {'concept': 'Q486972'}]
SELECT DISTINCT ?y WHERE { { VALUES ( ?r ) { ( ?z ) ( ?x ) } . ?r property:P159 ?y } . ?z rdf:type ontology:Q7210356 . ?y rdf:type ontology:Q486972 . ?x rdf:type ontology:Q1269299 }
Did you mean Zarephath ?
Zarephath
[[{'concept': 'political organization'}, {'concept': 'type of business entity'}], 'headquarters location', {'concept': 'human settlement'}]
SELECT DISTINCT ?y WHERE { { VALUES ( ?r ) { ( ?z ) ( ?x ) } . ?r property:headquarters_location ?y } . ?z rdf:type ontology:political_organization . ?y rdf:type ontology:human_settlement . ?x rdf:type ontology:type_of_business_entity }
[]
Comparative Reasoning (All)
USER
No, I meant Van Nuys. Could you tell me the answer for that?
(c(Q7210356)|c(Q1269299),P159,c(Q486972))
Q769446
[[{'concept': 'Q7210356'}, {'concept': 'Q1269299'}], 'P159', {'concept': 'Q486972'}]
[[{'concept': 'political organization'}, {'concept': 'type of business entity'}], 'headquarters location', {'concept': 'human settlement'}]
[]
Q1055 Q31487 Q1792
SYSTEM
Hamburg, Kraków, Gdańsk
Q214051 Q659984 Q107094 Q212704 Q661502 Q193638 Q261549 Q1792 Q41753 Q840381 Q4082 Q1374864 Q1337818 Q92212 Q11476196 Q24879 Q3477020 Q179645 Q1824274 Q3777 Q56037 Q215175 Q8072422 Q995267 Q831391 Q688830 Q190088 Q1045310 Q541405 Q217234 Q31487 Q595153 Q308928 Q2843 Q3347036 Q82500 Q236680 Q265071 Q12180369 Q1197269 Q81033 Q1055 Q729552 Q976443
(c(Q7210356)|c(Q1269299),P159,c(Q486972))
[ANSWERS] are the HQ of greater number of political organizations or business organizations than that human settlement
[[{'concept': 'Q7210356'}, {'concept': 'Q1269299'}], 'P159', {'concept': 'Q486972'}]
SELECT DISTINCT ?y WHERE { { { ?z property:P159 ?y } UNION { ?x property:P159 ?y } } . ?z rdf:type ontology:Q7210356 . ?y rdf:type ontology:Q486972 . ?x rdf:type ontology:Q1269299 }
Chiyoda-ku Ternitz Rybnik Chūō-ku Mattighofen Shibuya-ku Berwyn Gdańsk Klagenfurt Flatbush Hattingen Tysons Corner Woodland Hills Opole Shimanouchi Bremen Carle Place Shinjuku-ku Liesborn Ouagadougou East Berlin Kōtō-ku Zinj, Bahrain Bryn Mawr Hesborn Armonk Minato North Point Mestre Ōta-ku Kraków Shibuya Kreuzberg Lübeck Chatsworth St. Pölten Toshima-ku Roppongi Umm Al Hassam Nagatachō Monterrey Hamburg Kamppi Katajanokka
Hamburg, Kraków and Gdańsk are the HQ of greater number of political organizations or business organizations than that human settlement
Hamburg Kraków Gdańsk
[[{'concept': 'political organization'}, {'concept': 'type of business entity'}], 'headquarters location', {'concept': 'human settlement'}]
SELECT DISTINCT ?y WHERE { { { ?z property:headquarters_location ?y } UNION { ?x property:headquarters_location ?y } } . ?z rdf:type ontology:political_organization . ?y rdf:type ontology:human_settlement . ?x rdf:type ontology:type_of_business_entity }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P206
Q355304
USER
How many watercourses are situated nearby that human settlement ?
(Q1055,P206,c(Q355304))
['Q1055', 'P206', {'concept': 'Q355304'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q1005682 property:P206 ?z . ?z rdf:type ontology:Q355304 }
['Hamburg', 'located next to body of water', {'concept': 'watercourse'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Hamburg property:located_next_to_body_of_water ?z . ?z rdf:type ontology:watercourse }
[]
watercourse
Quantitative|Count|Single entity type|Clarification
Q31487
SYSTEM
Did you mean Kraków ?
(Q1055,P206,c(Q355304)) (Q31487,P206,c(Q355304)) (Q1792,P206,c(Q355304))
[ANSWER]
['Q1055', 'P206', {'concept': 'Q355304'}] ['Q31487', 'P206', {'concept': 'Q355304'}] ['Q1792', 'P206', {'concept': 'Q355304'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q1005682 property:P206 ?z . ?z rdf:type ontology:Q355304 }
Did you mean Kraków ?
Kraków
['Hamburg', 'located next to body of water', {'concept': 'watercourse'}] ['Kraków', 'located next to body of water', {'concept': 'watercourse'}] ['Gdańsk', 'located next to body of water', {'concept': 'watercourse'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Hamburg property:located_next_to_body_of_water ?z . ?z rdf:type ontology:watercourse }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Hamburg. Could you tell me the answer for that?
(Q1055,P206,c(Q355304))
Q1055
['Q1055', 'P206', {'concept': 'Q355304'}]
['Hamburg', 'located next to body of water', {'concept': 'watercourse'}]
[]
SYSTEM
12
Q3339 Q316450 Q430677 Q877543 Q2225573 Q1464580 Q317889 Q321993 Q882922 Q316958 Q1219 Q1644
(Q1055,P206,c(Q355304))
[ANSWER]
['Q1055', 'P206', {'concept': 'Q355304'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q1005682 property:P206 ?z . ?z rdf:type ontology:Q355304 }
Bille Wandse Este Rodenbek Saselbek Isebekkanal Tarpenbek Osterbek Bredenbek Flottbek Alster Elbe
12
['Hamburg', 'located next to body of water', {'concept': 'watercourse'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Hamburg property:located_next_to_body_of_water ?z . ?z rdf:type ontology:watercourse }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q210163
P1376
Q7275 Q486972
USER
Which states have greater number of human settlements as their capital than Astrakhan Khanate ?
(c(Q486972),P1376,c(Q7275))
action greater
action find_reverse_tuple_counts
relation P1376
type Q7275
type Q486972
action count
action filter_type
action find
entity Q210163
relation P1376
type Q7275
[{'concept': 'Q486972'}, 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?b ) AS ?j ) WHERE { ?b property:P1376 ?p . ?p rdf:type ontology:Q7275 . ?b rdf:type ontology:Q486972 } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?o ) WHERE { resource:Q210163 property:P1376 ?d . ?d rdf:type ontology:Q7275 } } . FILTER ( ?j > ?o ) }
Astrakhan Khanate
action greater
action find_reverse_tuple_counts
relation capital of
type state
type human settlement
action count
action filter_type
action find
entity Astrakhan Khanate
relation capital of
type state
[{'concept': 'human settlement'}, 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?b ) AS ?j ) WHERE { ?b property:capital_of ?p . ?p rdf:type ontology:state . ?b rdf:type ontology:human_settlement } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?o ) WHERE { resource:Astrakhan_Khanate property:capital_of ?d . ?d rdf:type ontology:state } } . FILTER ( ?j > ?o ) }
[]
state human settlement
Q16957 Q172107 Q953432
SYSTEM
East Germany, Polish–Lithuanian Commonwealth, Couto Misto
Q1649871 Q2361927 Q953432 Q216173 Q16957 Q172107 Q797422 Q235030 Q487829
(c(Q486972),P1376,c(Q7275))
action greater
action find_reverse_tuple_counts
relation P1376
type Q7275
type Q486972
action count
action filter_type
action find
entity Q210163
relation P1376
type Q7275
[ANSWERS] have greater number of human settlements as their capital than Astrakhan Khanate
[{'concept': 'Q486972'}, 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?b ) AS ?j ) WHERE { ?b property:P1376 ?p . ?p rdf:type ontology:Q7275 . ?b rdf:type ontology:Q486972 } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?o ) WHERE { resource:Q210163 property:P1376 ?d . ?d rdf:type ontology:Q7275 } } . FILTER ( ?j > ?o ) }
Kingdom of Poland Duchy of Masovia Couto Misto Free City of Danzig East Germany Polish–Lithuanian Commonwealth Republic of Upper Volta Principality of Antioch Chagatai Khanate
East Germany, Polish–Lithuanian Commonwealth and Couto Misto have greater number of human settlements as their capital than Astrakhan Khanate
East Germany Polish–Lithuanian Commonwealth Couto Misto
action greater
action find_reverse_tuple_counts
relation capital of
type state
type human settlement
action count
action filter_type
action find
entity Astrakhan Khanate
relation capital of
type state
[{'concept': 'human settlement'}, 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?b ) AS ?j ) WHERE { ?b property:capital_of ?p . ?p rdf:type ontology:state . ?b rdf:type ontology:human_settlement } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?o ) WHERE { resource:Astrakhan_Khanate property:capital_of ?d . ?d rdf:type ontology:state } } . FILTER ( ?j > ?o ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q325461
P1376
Q7275 Q486972
USER
And how about Kingdom of Thessalonica?
(c(Q486972),P1376,c(Q7275))
action greater
action find_reverse_tuple_counts
relation P1376
type Q7275
type Q486972
action count
action filter_type
action find
entity Q325461
relation P1376
type Q7275
[{'concept': 'Q486972'}, 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?x ) AS ?k ) WHERE { ?x property:P1376 ?q . ?q rdf:type ontology:Q7275 . ?x rdf:type ontology:Q486972 } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?i ) WHERE { resource:Q325461 property:P1376 ?h . ?h rdf:type ontology:Q7275 } } . FILTER ( ?k > ?i ) }
Kingdom of Thessalonica
action greater
action find_reverse_tuple_counts
relation capital of
type state
type human settlement
action count
action filter_type
action find
entity Kingdom of Thessalonica
relation capital of
type state
[{'concept': 'human settlement'}, 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?x ) AS ?k ) WHERE { ?x property:capital_of ?q . ?q rdf:type ontology:state . ?x rdf:type ontology:human_settlement } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?i ) WHERE { resource:Kingdom_of_Thessalonica property:capital_of ?h . ?h rdf:type ontology:state } } . FILTER ( ?k > ?i ) }
[]
state human settlement
Q16957 Q172107 Q953432
SYSTEM
East Germany, Polish–Lithuanian Commonwealth, Couto Misto
Q1649871 Q2361927 Q953432 Q216173 Q16957 Q172107 Q797422 Q235030 Q487829
(c(Q486972),P1376,c(Q7275))
action greater
action find_reverse_tuple_counts
relation P1376
type Q7275
type Q486972
action count
action filter_type
action find
entity Q325461
relation P1376
type Q7275
[ANSWERS]
[{'concept': 'Q486972'}, 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?x ) AS ?k ) WHERE { ?x property:P1376 ?q . ?q rdf:type ontology:Q7275 . ?x rdf:type ontology:Q486972 } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?i ) WHERE { resource:Q325461 property:P1376 ?h . ?h rdf:type ontology:Q7275 } } . FILTER ( ?k > ?i ) }
Kingdom of Poland Duchy of Masovia Couto Misto Free City of Danzig East Germany Polish–Lithuanian Commonwealth Republic of Upper Volta Principality of Antioch Chagatai Khanate
East Germany Polish–Lithuanian Commonwealth Couto Misto
action greater
action find_reverse_tuple_counts
relation capital of
type state
type human settlement
action count
action filter_type
action find
entity Kingdom of Thessalonica
relation capital of
type state
[{'concept': 'human settlement'}, 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?x ) AS ?k ) WHERE { ?x property:capital_of ?q . ?q rdf:type ontology:state . ?x rdf:type ontology:human_settlement } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?i ) WHERE { resource:Kingdom_of_Thessalonica property:capital_of ?h . ?h rdf:type ontology:state } } . FILTER ( ?k > ?i ) }
[]