Simple Question (Direct)
Simple Question
Q5200048
P1412
Q34770
USER
Which language does Cynthia Darlow speak in ?
(Q5200048,P1412,c(Q34770))
action filter_type
action find
entity Q5200048
relation P1412
type Q34770
['Q5200048', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q34770 . resource:Q5200048 property:P1412 ?f }
Cynthia Darlow
action filter_type
action find
entity Cynthia Darlow
relation languages spoken, written or signed
type language
['Cynthia Darlow', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:language . resource:Cynthia_Darlow property:languages_spoken,_written_or_signed ?f }
[]
language
Q1860
SYSTEM
English
Q1860
(Q5200048,P1412,c(Q34770))
action filter_type
action find
entity Q5200048
relation P1412
type Q34770
Cynthia Darlow speaks [ANSWER]
['Q5200048', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q34770 . resource:Q5200048 property:P1412 ?f }
English
Cynthia Darlow speaks English
English
action filter_type
action find
entity Cynthia Darlow
relation languages spoken, written or signed
type language
['Cynthia Darlow', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:language . resource:Cynthia_Darlow property:languages_spoken,_written_or_signed ?f }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5200048
P161
Q15416
USER
Which television program has that person as actor ?
(c(Q15416),P161,Q1860)
action filter_type
action find_reverse
entity Q5200048
relation P161
type Q15416
[{'concept': 'Q15416'}, 'P161', 'Q1860']
SELECT DISTINCT ?o WHERE { ?o property:P161 resource:Q5200048 . ?o rdf:type ontology:Q15416 }
Cynthia Darlow
action filter_type
action find_reverse
entity Cynthia Darlow
relation cast member
type television program
[{'concept': 'television program'}, 'cast member', 'English']
SELECT DISTINCT ?o WHERE { ?o property:cast_member resource:Cynthia_Darlow . ?o rdf:type ontology:television_program }
[]
television program
Q7582039
SYSTEM
Square One Television
Q7582039
(c(Q15416),P161,Q1860)
action filter_type
action find_reverse
entity Q5200048
relation P161
type Q15416
[ANSWER] has that person as actor
[{'concept': 'Q15416'}, 'P161', 'Q1860']
SELECT DISTINCT ?o WHERE { ?o property:P161 resource:Q5200048 . ?o rdf:type ontology:Q15416 }
Square One Television
Square One Television has that person as actor
Square One Television
action filter_type
action find_reverse
entity Cynthia Darlow
relation cast member
type television program
[{'concept': 'television program'}, 'cast member', 'English']
SELECT DISTINCT ?o WHERE { ?o property:cast_member resource:Cynthia_Darlow . ?o rdf:type ontology:television_program }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q29977
P282
Q2001982 Q9779 Q34770
USER
Which languages are around the same number of notations or alphabets the writing system of as Gaulish ?
(c(Q34770),P282,c(Q2001982)|c(Q9779))
action approx
action union
action find_tuple_counts
relation P282
type Q34770
type Q2001982
action find_tuple_counts
relation P282
type Q34770
type Q9779
action count
action filter_multi_types
action find
entity Q29977
relation P282
type Q2001982
type Q9779
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q2001982'}, {'concept': 'Q9779'}]]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?r ) ?z WHERE { ?d rdf:type ?k . VALUES ( ?k ) { ( ontology:Q2001982 ) ( ontology:Q9779 ) } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?y ) WHERE { resource:Q29977 property:P282 ?f . { { ?f rdf:type ontology:Q2001982 } UNION { ?f rdf:type ontology:Q9779 } } } } . FILTER ( ?r = ?y ) }
Gaulish
action approx
action union
action find_tuple_counts
relation writing system
type language
type notation
action find_tuple_counts
relation writing system
type language
type alphabet
action count
action filter_multi_types
action find
entity Gaulish
relation writing system
type notation
type alphabet
[{'concept': 'language'}, 'writing system', [{'concept': 'notation'}, {'concept': 'alphabet'}]]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?r ) ?z WHERE { ?d rdf:type ?k . VALUES ( ?k ) { ( ontology:notation ) ( ontology:alphabet ) } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?y ) WHERE { resource:Gaulish property:writing_system ?f . { { ?f rdf:type ontology:notation } UNION { ?f rdf:type ontology:alphabet } } } } . FILTER ( ?r = ?y ) }
[]
notation alphabet language
Q1860 Q447117 Q36708
SYSTEM
English, Old Egyptian, Norn
Q7102906 Q20832 Q20831 Q1133488 Q13414913 Q402878 Q36708 Q36741 Q35668 Q1669994 Q8785 Q35726 Q1321 Q21161949 Q25167 Q18130932 Q11732220 Q33976 Q856383 Q149838 Q47625 Q36822 Q33879 Q7362035 Q56472 Q6047309 Q8752 Q36178 Q9056 Q397 Q56512 Q35505 Q36957 Q25164 Q56982 Q35308 Q1860 Q36116 Q29977 Q837985 Q447117 Q7511561 Q33982
(c(Q34770),P282,c(Q2001982)|c(Q9779))
action approx
action union
action find_tuple_counts
relation P282
type Q34770
type Q2001982
action find_tuple_counts
relation P282
type Q34770
type Q9779
action count
action filter_multi_types
action find
entity Q29977
relation P282
type Q2001982
type Q9779
[ANSWERS] are around the same number of notations or alphabets the writing system of as Gaulish
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q2001982'}, {'concept': 'Q9779'}]]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?r ) ?z WHERE { ?d rdf:type ?k . VALUES ( ?k ) { ( ontology:Q2001982 ) ( ontology:Q9779 ) } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?y ) WHERE { resource:Q29977 property:P282 ?f . { { ?f rdf:type ontology:Q2001982 } UNION { ?f rdf:type ontology:Q9779 } } } } . FILTER ( ?r = ?y ) }
Orizaba Nahuatl Wailaki language Cahto language Old Gutnish Simplified Chinese Middle Polish Norn Polabian Hittite Minoan language Armenian Etruscan Spanish Serbian written in Latin script Bokmål Traditional Chinese Archaic Greek Sardinian language Pictish Old Polish Burgundian Slovincian language Pangasinan language Roman Khowar Shuadit language Central Nahuatl Basque Nabataean language Czech Latin Anêm language Old Norse language Umbrian Nynorsk Judaeo-Portuguese Old Irish English Middle Irish Gaulish Middle High German Old Egyptian Sierra Puebla Nahuatl Low Prussian
English, Old Egyptian and Norn are around the same number of notations or alphabets the writing system of as Gaulish
English Old Egyptian Norn
action approx
action union
action find_tuple_counts
relation writing system
type language
type notation
action find_tuple_counts
relation writing system
type language
type alphabet
action count
action filter_multi_types
action find
entity Gaulish
relation writing system
type notation
type alphabet
[{'concept': 'language'}, 'writing system', [{'concept': 'notation'}, {'concept': 'alphabet'}]]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?r ) ?z WHERE { ?d rdf:type ?k . VALUES ( ?k ) { ( ontology:notation ) ( ontology:alphabet ) } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?y ) WHERE { resource:Gaulish property:writing_system ?f . { { ?f rdf:type ontology:notation } UNION { ?f rdf:type ontology:alphabet } } } } . FILTER ( ?r = ?y ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q36957
P282
Q2001982 Q9779 Q34770
USER
And also tell me about Umbrian?
(c(Q34770),P282,c(Q2001982)|c(Q9779))
action approx
action union
action find_tuple_counts
relation P282
type Q34770
type Q2001982
action find_tuple_counts
relation P282
type Q34770
type Q9779
action count
action filter_multi_types
action find
entity Q36957
relation P282
type Q2001982
type Q9779
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q2001982'}, {'concept': 'Q9779'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?g ) ?s WHERE { { ?s property:P282 ?b . ?b rdf:type ontology:Q9779 . ?s rdf:type ontology:Q34770 } UNION { ?s property:P282 ?b . ?s rdf:type ontology:Q34770 . ?b rdf:type ontology:Q2001982 } } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?u ) WHERE { resource:Q36957 property:P282 ?e . { VALUES ( ?m ) { ( ontology:Q2001982 ) ( ontology:Q9779 ) } . ?e rdf:type ?m } } } . FILTER ( ?g = ?u ) }
Umbrian
action approx
action union
action find_tuple_counts
relation writing system
type language
type notation
action find_tuple_counts
relation writing system
type language
type alphabet
action count
action filter_multi_types
action find
entity Umbrian
relation writing system
type notation
type alphabet
[{'concept': 'language'}, 'writing system', [{'concept': 'notation'}, {'concept': 'alphabet'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?g ) ?s WHERE { { ?s property:writing_system ?b . ?b rdf:type ontology:alphabet . ?s rdf:type ontology:language } UNION { ?s property:writing_system ?b . ?s rdf:type ontology:language . ?b rdf:type ontology:notation } } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?u ) WHERE { resource:Umbrian property:writing_system ?e . { VALUES ( ?m ) { ( ontology:notation ) ( ontology:alphabet ) } . ?e rdf:type ?m } } } . FILTER ( ?g = ?u ) }
[]
notation alphabet language
Q1860 Q447117 Q36708
SYSTEM
English, Old Egyptian, Norn
Q7102906 Q20832 Q20831 Q1133488 Q13414913 Q402878 Q36708 Q36741 Q35668 Q1669994 Q8785 Q35726 Q1321 Q21161949 Q25167 Q18130932 Q11732220 Q33976 Q856383 Q149838 Q47625 Q36822 Q33879 Q7362035 Q56472 Q6047309 Q8752 Q36178 Q9056 Q397 Q56512 Q35505 Q36957 Q25164 Q56982 Q35308 Q1860 Q36116 Q29977 Q837985 Q447117 Q7511561 Q33982
(c(Q34770),P282,c(Q2001982)|c(Q9779))
action approx
action union
action find_tuple_counts
relation P282
type Q34770
type Q2001982
action find_tuple_counts
relation P282
type Q34770
type Q9779
action count
action filter_multi_types
action find
entity Q36957
relation P282
type Q2001982
type Q9779
[ANSWERS]
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q2001982'}, {'concept': 'Q9779'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?g ) ?s WHERE { { ?s property:P282 ?b . ?b rdf:type ontology:Q9779 . ?s rdf:type ontology:Q34770 } UNION { ?s property:P282 ?b . ?s rdf:type ontology:Q34770 . ?b rdf:type ontology:Q2001982 } } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?u ) WHERE { resource:Q36957 property:P282 ?e . { VALUES ( ?m ) { ( ontology:Q2001982 ) ( ontology:Q9779 ) } . ?e rdf:type ?m } } } . FILTER ( ?g = ?u ) }
Orizaba Nahuatl Wailaki language Cahto language Old Gutnish Simplified Chinese Middle Polish Norn Polabian Hittite Minoan language Armenian Etruscan Spanish Serbian written in Latin script Bokmål Traditional Chinese Archaic Greek Sardinian language Pictish Old Polish Burgundian Slovincian language Pangasinan language Roman Khowar Shuadit language Central Nahuatl Basque Nabataean language Czech Latin Anêm language Old Norse language Umbrian Nynorsk Judaeo-Portuguese Old Irish English Middle Irish Gaulish Middle High German Old Egyptian Sierra Puebla Nahuatl Low Prussian
English Old Egyptian Norn
action approx
action union
action find_tuple_counts
relation writing system
type language
type notation
action find_tuple_counts
relation writing system
type language
type alphabet
action count
action filter_multi_types
action find
entity Umbrian
relation writing system
type notation
type alphabet
[{'concept': 'language'}, 'writing system', [{'concept': 'notation'}, {'concept': 'alphabet'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?g ) ?s WHERE { { ?s property:writing_system ?b . ?b rdf:type ontology:alphabet . ?s rdf:type ontology:language } UNION { ?s property:writing_system ?b . ?s rdf:type ontology:language . ?b rdf:type ontology:notation } } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?u ) WHERE { resource:Umbrian property:writing_system ?e . { VALUES ( ?m ) { ( ontology:notation ) ( ontology:alphabet ) } . ?e rdf:type ?m } } } . FILTER ( ?g = ?u ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q5057694 Q5200048
P19 P1383
Q56061
USER
Which administrative territories are the places of birth of Cynthia Darlow or are contained in Beica de Jos ?
OR((Q5200048,P19,c(Q56061)), (Q5057694,P1383,c(Q56061)))
action filter_type
action union
action find
entity Q5200048
relation P19
action find
entity Q5057694
relation P1383
type Q56061
{'OR': [['Q5200048', 'P19', {'concept': 'Q56061'}], ['Q5057694', 'P1383', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Q5200048 property:P19 ?v } UNION { resource:Q5057694 property:P1383 ?v } } . ?v rdf:type ontology:Q56061 }
Beica de Jos Cynthia Darlow
action filter_type
action union
action find
entity Cynthia Darlow
relation place of birth
action find
entity Beica de Jos
relation contains settlement
type administrative territorial entity
{'OR': [['Cynthia Darlow', 'place of birth', {'concept': 'administrative territorial entity'}], ['Beica de Jos', 'contains settlement', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Cynthia_Darlow property:place_of_birth ?v } UNION { resource:Beica_de_Jos property:contains_settlement ?v } } . ?v rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q686728 Q633971 Q725615 Q663760 Q725603 Q12439 Q725654
SYSTEM
Beica de Sus, Șerbeni, Sânmihai de Pădure, Beica de Jos, Căcuciu, Detroit, Nadășa
Q686728 Q633971 Q725615 Q663760 Q725603 Q12439 Q725654
OR((Q5200048,P19,c(Q56061)), (Q5057694,P1383,c(Q56061)))
action filter_type
action union
action find
entity Q5200048
relation P19
action find
entity Q5057694
relation P1383
type Q56061
[ANSWERS] are the places of birth of Cynthia Darlow or are contained in Beica de Jos
{'OR': [['Q5200048', 'P19', {'concept': 'Q56061'}], ['Q5057694', 'P1383', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Q5200048 property:P19 ?v } UNION { resource:Q5057694 property:P1383 ?v } } . ?v rdf:type ontology:Q56061 }
Beica de Sus Șerbeni Sânmihai de Pădure Beica de Jos Căcuciu Detroit Nadășa
Beica de Sus, Șerbeni, Sânmihai de Pădure, Beica de Jos, Căcuciu, Detroit and Nadășa are the places of birth of Cynthia Darlow or are contained in Beica de Jos
Beica de Sus Șerbeni Sânmihai de Pădure Beica de Jos Căcuciu Detroit Nadășa
action filter_type
action union
action find
entity Cynthia Darlow
relation place of birth
action find
entity Beica de Jos
relation contains settlement
type administrative territorial entity
{'OR': [['Cynthia Darlow', 'place of birth', {'concept': 'administrative territorial entity'}], ['Beica de Jos', 'contains settlement', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Cynthia_Darlow property:place_of_birth ?v } UNION { resource:Beica_de_Jos property:contains_settlement ?v } } . ?v rdf:type ontology:administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q686728
P17
Q15617994
USER
Which administrative territory is that administrative territory a part of ?
(Q686728,P17,c(Q15617994))
action filter_type
action find
entity Q686728
relation P17
type Q15617994
['Q686728', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q15617994 . resource:Q686728 property:P17 ?m }
Beica de Sus
action filter_type
action find
entity Beica de Sus
relation country
type designation for an administrative territorial entity
['Beica de Sus', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Beica_de_Sus property:country ?m }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q725615
SYSTEM
Did you mean Sânmihai de Pădure ?
Q686728 Q633971 Q725615 Q663760 Q725603 Q12439 Q725654
(Q686728,P17,c(Q15617994)) (Q633971,P17,c(Q15617994)) (Q725615,P17,c(Q15617994)) (Q663760,P17,c(Q15617994)) (Q725603,P17,c(Q15617994)) (Q12439,P17,c(Q15617994)) (Q725654,P17,c(Q15617994))
[ANSWER]
['Q686728', 'P17', {'concept': 'Q15617994'}] ['Q633971', 'P17', {'concept': 'Q15617994'}] ['Q725615', 'P17', {'concept': 'Q15617994'}] ['Q663760', 'P17', {'concept': 'Q15617994'}] ['Q725603', 'P17', {'concept': 'Q15617994'}] ['Q12439', 'P17', {'concept': 'Q15617994'}] ['Q725654', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q15617994 . resource:Q686728 property:P17 ?m }
Beica de Sus Șerbeni Sânmihai de Pădure Beica de Jos Căcuciu Detroit Nadășa
Did you mean Sânmihai de Pădure ?
Sânmihai de Pădure
['Beica de Sus', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Șerbeni', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Sânmihai de Pădure', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Beica de Jos', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Căcuciu', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Detroit', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Nadășa', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Beica_de_Sus property:country ?m }
[]
Simple Question (Coreferenced)
USER
No, I meant Beica de Sus. Could you tell me the answer for that?
(Q686728,P17,c(Q15617994))
Q686728
['Q686728', 'P17', {'concept': 'Q15617994'}]
['Beica de Sus', 'country', {'concept': 'designation for an administrative territorial entity'}]
[]
Q218
SYSTEM
Romania
Q218
(Q686728,P17,c(Q15617994))
action filter_type
action find
entity Q686728
relation P17
type Q15617994
[ANSWER] is that administrative territory a part of
['Q686728', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q15617994 . resource:Q686728 property:P17 ?m }
Romania
Romania is that administrative territory a part of
Romania
action filter_type
action find
entity Beica de Sus
relation country
type designation for an administrative territorial entity
['Beica de Sus', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Beica_de_Sus property:country ?m }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q42159
P559
Q56061 Q83620 Q34442
USER
How many administrative territories are the terminus for more number of thoroughfares and roads than Hanam ?
(c(Q83620)|c(Q34442),P559,c(Q56061))
action count
action greater
action union
action find_reverse_tuple_counts
relation P559
type Q56061
type Q83620
action find_reverse_tuple_counts
relation P559
type Q56061
type Q34442
action count
action filter_multi_types
action find_reverse
entity Q42159
relation P559
type Q83620
type Q34442
[[{'concept': 'Q83620'}, {'concept': 'Q34442'}], 'P559', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?g ) ?d WHERE { { ?m property:P559 ?d . ?m rdf:type ontology:Q83620 . ?d rdf:type ontology:Q56061 } UNION { ?m property:P559 ?d . ?d rdf:type ontology:Q56061 . ?m rdf:type ontology:Q34442 } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?k ) WHERE { ?c property:P559 resource:Q42159 . { { ?c rdf:type ontology:Q83620 } UNION { ?c rdf:type ontology:Q34442 } } } } . FILTER ( ?g > ?k ) }
Hanam
action count
action greater
action union
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type thoroughfare
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type road
action count
action filter_multi_types
action find_reverse
entity Hanam
relation terminus
type thoroughfare
type road
[[{'concept': 'thoroughfare'}, {'concept': 'road'}], 'terminus', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?g ) ?d WHERE { { ?m property:terminus ?d . ?m rdf:type ontology:thoroughfare . ?d rdf:type ontology:administrative_territorial_entity } UNION { ?m property:terminus ?d . ?d rdf:type ontology:administrative_territorial_entity . ?m rdf:type ontology:road } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?k ) WHERE { ?c property:terminus resource:Hanam . { { ?c rdf:type ontology:thoroughfare } UNION { ?c rdf:type ontology:road } } } } . FILTER ( ?g > ?k ) }
[]
administrative territorial entity thoroughfare road
SYSTEM
52
Q938820 Q9832 Q11851639 Q23436 Q3812238 Q1017610 Q10084 Q7567083 Q723164 Q23311 Q49550 Q38511 Q3001 Q986100 Q6023 Q171357 Q956 Q959 Q649 Q211059 Q18808 Q671348 Q5032535 Q4093 Q987170 Q1763 Q1449 Q1757 Q36989 Q990112 Q40840 Q542966 Q3992 Q1318695 Q369947 Q84 Q2132 Q2133814 Q7944369 Q184383 Q263954 Q12892 Q6816 Q466054 Q953081 Q180717 Q580016 Q244289 Q588417 Q146659 Q530309 Q1085
(c(Q83620)|c(Q34442),P559,c(Q56061))
action count
action greater
action union
action find_reverse_tuple_counts
relation P559
type Q56061
type Q83620
action find_reverse_tuple_counts
relation P559
type Q56061
type Q34442
action count
action filter_multi_types
action find_reverse
entity Q42159
relation P559
type Q83620
type Q34442
[ANSWER]
[[{'concept': 'Q83620'}, {'concept': 'Q34442'}], 'P559', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?g ) ?d WHERE { { ?m property:P559 ?d . ?m rdf:type ontology:Q83620 . ?d rdf:type ontology:Q56061 } UNION { ?m property:P559 ?d . ?d rdf:type ontology:Q56061 . ?m rdf:type ontology:Q34442 } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?k ) WHERE { ?c property:P559 resource:Q42159 . { { ?c rdf:type ontology:Q83620 } UNION { ?c rdf:type ontology:Q34442 } } } } . FILTER ( ?g > ?k ) }
Virrat Eindhoven Annalankangas Edinburgh Bronygarth Horgoš Vlissingen South Drain Pop City of London Maó-Mahón Turku Paramaribo Ridder Lapua Kecskemét Beijing Vladivostok Moscow Jõhvi Pyongyang Worthing Cann River Glasgow Inčukalns Murmansk Genoa Helsinki Pardubice Littlehampton Tampere Angren, Uzbekistan Liège Apoera El Cajon London Victoria St Nicholas-at-Wade Värpinge Zeebrugge Afobaka Antwerp Ulan-Ude Mahdia Orivesi Sousse Albina Athis-Mons Sewell, Chile Clapham Karkkila Prague
52
action count
action greater
action union
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type thoroughfare
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type road
action count
action filter_multi_types
action find_reverse
entity Hanam
relation terminus
type thoroughfare
type road
[[{'concept': 'thoroughfare'}, {'concept': 'road'}], 'terminus', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?g ) ?d WHERE { { ?m property:terminus ?d . ?m rdf:type ontology:thoroughfare . ?d rdf:type ontology:administrative_territorial_entity } UNION { ?m property:terminus ?d . ?d rdf:type ontology:administrative_territorial_entity . ?m rdf:type ontology:road } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?k ) WHERE { ?c property:terminus resource:Hanam . { { ?c rdf:type ontology:thoroughfare } UNION { ?c rdf:type ontology:road } } } } . FILTER ( ?g > ?k ) }
[]