Simple Question (Direct)
Simple Question
Q1691492
P106
Q12737077
USER
Which occupations have Joe Klein as his/her 's career ?
(Q1691492,P106,c(Q12737077))
action filter_type
action find
entity Q1691492
relation P106
type Q12737077
['Q1691492', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?o WHERE { resource:Q1691492 property:P106 ?o . ?o rdf:type ontology:Q12737077 }
Joe Klein
action filter_type
action find
entity Joe Klein
relation occupation
type occupation
['Joe Klein', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?o WHERE { resource:Joe_Klein property:occupation ?o . ?o rdf:type ontology:occupation }
[]
occupation
Q1930187 Q6625963 Q864380
SYSTEM
journalist, novelist, biographer
Q1930187 Q6625963 Q864380
(Q1691492,P106,c(Q12737077))
action filter_type
action find
entity Q1691492
relation P106
type Q12737077
The [ANSWERS] have Joe Klein as his/her 's career
['Q1691492', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?o WHERE { resource:Q1691492 property:P106 ?o . ?o rdf:type ontology:Q12737077 }
journalist novelist biographer
The journalist, novelist and biographer have Joe Klein as his/her 's career
journalist novelist biographer
action filter_type
action find
entity Joe Klein
relation occupation
type occupation
['Joe Klein', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?o WHERE { resource:Joe_Klein property:occupation ?o . ?o rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1691492
P19
Q56061
USER
Which administrative territory is the place of birth of that person ?
(Q1930187,P19,c(Q56061)) (Q6625963,P19,c(Q56061)) (Q864380,P19,c(Q56061))
action filter_type
action find
entity Q1691492
relation P19
type Q56061
['Q1930187', 'P19', {'concept': 'Q56061'}] ['Q6625963', 'P19', {'concept': 'Q56061'}] ['Q864380', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { resource:Q1691492 property:P19 ?e . ?e rdf:type ontology:Q56061 }
Joe Klein
action filter_type
action find
entity Joe Klein
relation place of birth
type administrative territorial entity
['journalist', 'place of birth', {'concept': 'administrative territorial entity'}] ['novelist', 'place of birth', {'concept': 'administrative territorial entity'}] ['biographer', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Joe_Klein property:place_of_birth ?e . ?e rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q60
SYSTEM
New York City
Q60
(Q1930187,P19,c(Q56061)) (Q6625963,P19,c(Q56061)) (Q864380,P19,c(Q56061))
action filter_type
action find
entity Q1691492
relation P19
type Q56061
[ANSWER] is the place of birth of that person
['Q1930187', 'P19', {'concept': 'Q56061'}] ['Q6625963', 'P19', {'concept': 'Q56061'}] ['Q864380', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { resource:Q1691492 property:P19 ?e . ?e rdf:type ontology:Q56061 }
New York City
New York City is the place of birth of that person
New York City
action filter_type
action find
entity Joe Klein
relation place of birth
type administrative territorial entity
['journalist', 'place of birth', {'concept': 'administrative territorial entity'}] ['novelist', 'place of birth', {'concept': 'administrative territorial entity'}] ['biographer', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Joe_Klein property:place_of_birth ?e . ?e rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q5997882 Q1691492
P19
Q56061
USER
Or Ilhama Gasimova?
OR((Q1691492,P19,c(Q56061)), (Q5997882,P19,c(Q56061)))
action filter_type
action union
action find
entity Q1691492
relation P19
action find
entity Q5997882
relation P19
type Q56061
{'OR': [['Q1691492', 'P19', {'concept': 'Q56061'}], ['Q5997882', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q5997882 property:P19 ?y } UNION { resource:Q1691492 property:P19 ?y } } . ?y rdf:type ontology:Q56061 }
Ilhama Gasimova Joe Klein
action filter_type
action union
action find
entity Joe Klein
relation place of birth
action find
entity Ilhama Gasimova
relation place of birth
type administrative territorial entity
{'OR': [['Joe Klein', 'place of birth', {'concept': 'administrative territorial entity'}], ['Ilhama Gasimova', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Ilhama_Gasimova property:place_of_birth ?y } UNION { resource:Joe_Klein property:place_of_birth ?y } } . ?y rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q4792151 Q60
SYSTEM
Bala Şürük, New York City
Q4792151 Q60
OR((Q1691492,P19,c(Q56061)), (Q5997882,P19,c(Q56061)))
action filter_type
action union
action find
entity Q1691492
relation P19
action find
entity Q5997882
relation P19
type Q56061
[ANSWERS]
{'OR': [['Q1691492', 'P19', {'concept': 'Q56061'}], ['Q5997882', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q5997882 property:P19 ?y } UNION { resource:Q1691492 property:P19 ?y } } . ?y rdf:type ontology:Q56061 }
Bala Şürük New York City
Bala Şürük New York City
action filter_type
action union
action find
entity Joe Klein
relation place of birth
action find
entity Ilhama Gasimova
relation place of birth
type administrative territorial entity
{'OR': [['Joe Klein', 'place of birth', {'concept': 'administrative territorial entity'}], ['Ilhama Gasimova', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Ilhama_Gasimova property:place_of_birth ?y } UNION { resource:Joe_Klein property:place_of_birth ?y } } . ?y rdf:type ontology:administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q486839
P921
Q12737077 Q386724 Q2342494
USER
How many occupations were the main subjects of approximately the same number of works or collectables 's work as member of parliament ?
(c(Q386724)|c(Q2342494),P921,c(Q12737077))
action count
action approx
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q486839
relation P921
type Q386724
type Q2342494
[[{'concept': 'Q386724'}, {'concept': 'Q2342494'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?o ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?l ) AS ?a ) WHERE { { ?l rdf:type ontology:Q386724 . ?g rdf:type ontology:Q12737077 . ?l property:P921 ?g } UNION { ?l property:P921 ?g . ?g rdf:type ontology:Q12737077 . ?l rdf:type ontology:Q2342494 } } GROUP BY ?g } . FILTER ( ?a = ?p ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?p ) WHERE { ?x property:P921 resource:Q486839 . { { ?x rdf:type ontology:Q386724 } UNION { ?x rdf:type ontology:Q2342494 } } } } }
member of parliament
action count
action approx
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type work
action find_reverse_tuple_counts
relation main subject
type occupation
type collectable
action count
action filter_multi_types
action find_reverse
entity member of parliament
relation main subject
type work
type collectable
[[{'concept': 'work'}, {'concept': 'collectable'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?o ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?l ) AS ?a ) WHERE { { ?l rdf:type ontology:work . ?g rdf:type ontology:occupation . ?l property:main_subject ?g } UNION { ?l property:main_subject ?g . ?g rdf:type ontology:occupation . ?l rdf:type ontology:collectable } } GROUP BY ?g } . FILTER ( ?a = ?p ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?p ) WHERE { ?x property:main_subject resource:member_of_parliament . { { ?x rdf:type ontology:work } UNION { ?x rdf:type ontology:collectable } } } } }
[]
occupation work collectable
SYSTEM
96
Q172907 Q15637082 Q911554 Q9045502 Q2666591 Q1124183 Q5185440 Q765778 Q33999 Q36180 Q774306 Q3809586 Q3315094 Q83307 Q622807 Q4610556 Q18145518 Q7358 Q131512 Q1708232 Q2094335 Q82955 Q842782 Q730242 Q378622 Q42973 Q19627913 Q18534408 Q1930187 Q16267607 Q212238 Q6337803 Q202883 Q14948018 Q11642 Q20065408 Q618536 Q2961580 Q43845 Q14128148 Q814356 Q101539 Q168559 Q316070 Q1058375 Q16556694 Q4991371 Q29182 Q486839 Q510373 Q899758 Q131524 Q19185341 Q23810528 Q2306431 Q15958185 Q205375 Q164236 Q654291 Q14373094 Q483501 Q152002 Q1114448 Q16533 Q18220900 Q936969 Q3658608 Q1028181 Q19204627 Q15987302 Q36834 Q15320003 Q133485 Q1477129 Q158852 Q16003605 Q245068 Q33231 Q838811 Q219477 Q1006696 Q639669 Q732358 Q49757 Q17143199 Q384593 Q2095549 Q372436 Q1238570 Q182436 Q2259532 Q1674312 Q361593 Q1856798 Q16003532 Q16707842
(c(Q386724)|c(Q2342494),P921,c(Q12737077))
action count
action approx
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q486839
relation P921
type Q386724
type Q2342494
[ANSWER]
[[{'concept': 'Q386724'}, {'concept': 'Q2342494'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?o ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?l ) AS ?a ) WHERE { { ?l rdf:type ontology:Q386724 . ?g rdf:type ontology:Q12737077 . ?l property:P921 ?g } UNION { ?l property:P921 ?g . ?g rdf:type ontology:Q12737077 . ?l rdf:type ontology:Q2342494 } } GROUP BY ?g } . FILTER ( ?a = ?p ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?p ) WHERE { ?x property:P921 resource:Q486839 . { { ?x rdf:type ontology:Q386724 } UNION { ?x rdf:type ontology:Q2342494 } } } } }
praetor industrialist business magnate member of the Parliament of Norway Chair of the Federal Reserve lumberjack Crime scene cleanup organist actor writer surgeon Wikipedian in Residence Prime Minister of Hungary minister seiyū model Member of the New Zealand House of Representatives clown farmer medallist United States Attorney politician detective test pilot racing driver architect Member of the Western Australian Legislative Council member of the Victorian Legislative Assembly journalist classical philologist civil servant neuroscientist veterinarian street musician pottery member of the Virginia House of Delegates candidate taxi driver businessperson gridiron football player call girl flight attendant political commissar Fletcher Christian double agent member of the Lok Sabha soldier bishop member of parliament Lord High Steward violist entrepreneur Member of the Victorian Legislative Council ice cream taster White House Press Secretary racecar driver inventor war correspondent Deputy to the Dáil rugby league player artist pastor cartoonist judge Member of the South Australian House of Assembly nanny caricaturist painter American football player legal profession composer migrant worker rabbi völva conductor elementary school student comedian photographer peasant missionary United States federal judge musician Nomarch poet medical examiner police officer aviator statesman political scientist librarian cleric rag-and-bone man police officer baseball umpire middle school student Member of Parliament in the United Kingdom
96
action count
action approx
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type work
action find_reverse_tuple_counts
relation main subject
type occupation
type collectable
action count
action filter_multi_types
action find_reverse
entity member of parliament
relation main subject
type work
type collectable
[[{'concept': 'work'}, {'concept': 'collectable'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?o ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?l ) AS ?a ) WHERE { { ?l rdf:type ontology:work . ?g rdf:type ontology:occupation . ?l property:main_subject ?g } UNION { ?l property:main_subject ?g . ?g rdf:type ontology:occupation . ?l rdf:type ontology:collectable } } GROUP BY ?g } . FILTER ( ?a = ?p ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?p ) WHERE { ?x property:main_subject resource:member_of_parliament . { { ?x rdf:type ontology:work } UNION { ?x rdf:type ontology:collectable } } } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q2961580
P921
Q12737077 Q386724 Q2342494
USER
And how about taxi driver?
(c(Q386724)|c(Q2342494),P921,c(Q12737077))
action count
action approx
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q2961580
relation P921
type Q386724
type Q2342494
[[{'concept': 'Q386724'}, {'concept': 'Q2342494'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?k ) ?v WHERE { VALUES ( ?y ) { ( ontology:Q386724 ) ( ontology:Q2342494 ) } . ?c rdf:type ?y } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?h ) WHERE { ?o property:P921 resource:Q2961580 . { { ?o rdf:type ontology:Q2342494 } UNION { ?o rdf:type ontology:Q386724 } } } } . FILTER ( ?k = ?h ) }
taxi driver
action count
action approx
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type work
action find_reverse_tuple_counts
relation main subject
type occupation
type collectable
action count
action filter_multi_types
action find_reverse
entity taxi driver
relation main subject
type work
type collectable
[[{'concept': 'work'}, {'concept': 'collectable'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?k ) ?v WHERE { VALUES ( ?y ) { ( ontology:work ) ( ontology:collectable ) } . ?c rdf:type ?y } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?h ) WHERE { ?o property:main_subject resource:taxi_driver . { { ?o rdf:type ontology:collectable } UNION { ?o rdf:type ontology:work } } } } . FILTER ( ?k = ?h ) }
[]
occupation work collectable
SYSTEM
96
Q172907 Q15637082 Q911554 Q9045502 Q2666591 Q1124183 Q5185440 Q765778 Q33999 Q36180 Q774306 Q3809586 Q3315094 Q83307 Q622807 Q4610556 Q18145518 Q7358 Q131512 Q1708232 Q2094335 Q82955 Q842782 Q730242 Q378622 Q42973 Q19627913 Q18534408 Q1930187 Q16267607 Q212238 Q6337803 Q202883 Q14948018 Q11642 Q20065408 Q618536 Q2961580 Q43845 Q14128148 Q814356 Q101539 Q168559 Q316070 Q1058375 Q16556694 Q4991371 Q29182 Q486839 Q510373 Q899758 Q131524 Q19185341 Q23810528 Q2306431 Q15958185 Q205375 Q164236 Q654291 Q14373094 Q483501 Q152002 Q1114448 Q16533 Q18220900 Q936969 Q3658608 Q1028181 Q19204627 Q15987302 Q36834 Q15320003 Q133485 Q1477129 Q158852 Q16003605 Q245068 Q33231 Q838811 Q219477 Q1006696 Q639669 Q732358 Q49757 Q17143199 Q384593 Q2095549 Q372436 Q1238570 Q182436 Q2259532 Q1674312 Q361593 Q1856798 Q16003532 Q16707842
(c(Q386724)|c(Q2342494),P921,c(Q12737077))
action count
action approx
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q2961580
relation P921
type Q386724
type Q2342494
[ANSWER]
[[{'concept': 'Q386724'}, {'concept': 'Q2342494'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?k ) ?v WHERE { VALUES ( ?y ) { ( ontology:Q386724 ) ( ontology:Q2342494 ) } . ?c rdf:type ?y } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?h ) WHERE { ?o property:P921 resource:Q2961580 . { { ?o rdf:type ontology:Q2342494 } UNION { ?o rdf:type ontology:Q386724 } } } } . FILTER ( ?k = ?h ) }
praetor industrialist business magnate member of the Parliament of Norway Chair of the Federal Reserve lumberjack Crime scene cleanup organist actor writer surgeon Wikipedian in Residence Prime Minister of Hungary minister seiyū model Member of the New Zealand House of Representatives clown farmer medallist United States Attorney politician detective test pilot racing driver architect Member of the Western Australian Legislative Council member of the Victorian Legislative Assembly journalist classical philologist civil servant neuroscientist veterinarian street musician pottery member of the Virginia House of Delegates candidate taxi driver businessperson gridiron football player call girl flight attendant political commissar Fletcher Christian double agent member of the Lok Sabha soldier bishop member of parliament Lord High Steward violist entrepreneur Member of the Victorian Legislative Council ice cream taster White House Press Secretary racecar driver inventor war correspondent Deputy to the Dáil rugby league player artist pastor cartoonist judge Member of the South Australian House of Assembly nanny caricaturist painter American football player legal profession composer migrant worker rabbi völva conductor elementary school student comedian photographer peasant missionary United States federal judge musician Nomarch poet medical examiner police officer aviator statesman political scientist librarian cleric rag-and-bone man police officer baseball umpire middle school student Member of Parliament in the United Kingdom
96
action count
action approx
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type work
action find_reverse_tuple_counts
relation main subject
type occupation
type collectable
action count
action filter_multi_types
action find_reverse
entity taxi driver
relation main subject
type work
type collectable
[[{'concept': 'work'}, {'concept': 'collectable'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?k ) ?v WHERE { VALUES ( ?y ) { ( ontology:work ) ( ontology:collectable ) } . ?c rdf:type ?y } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?h ) WHERE { ?o property:main_subject resource:taxi_driver . { { ?o rdf:type ontology:collectable } UNION { ?o rdf:type ontology:work } } } } . FILTER ( ?k = ?h ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q60
P276
Q102496
USER
What is located at New York City ?
(c(Q102496),P276,Q60)
action filter_type
action find_reverse
entity Q60
relation P276
type Q102496
[{'concept': 'Q102496'}, 'P276', 'Q60']
SELECT DISTINCT ?n WHERE { ?n property:P276 resource:Q60 . ?n rdf:type ontology:Q102496 }
New York City
action filter_type
action find_reverse
entity New York City
relation location
type parish
[{'concept': 'parish'}, 'location', 'New York City']
SELECT DISTINCT ?n WHERE { ?n property:location resource:New_York_City . ?n rdf:type ontology:parish }
[]
parish
Q18012128
SYSTEM
Church of Sweden in New York
Q18012128
(c(Q102496),P276,Q60)
action filter_type
action find_reverse
entity Q60
relation P276
type Q102496
[ANSWER] is located at New York City
[{'concept': 'Q102496'}, 'P276', 'Q60']
SELECT DISTINCT ?n WHERE { ?n property:P276 resource:Q60 . ?n rdf:type ontology:Q102496 }
Church of Sweden in New York
Church of Sweden in New York is located at New York City
Church of Sweden in New York
action filter_type
action find_reverse
entity New York City
relation location
type parish
[{'concept': 'parish'}, 'location', 'New York City']
SELECT DISTINCT ?n WHERE { ?n property:location resource:New_York_City . ?n rdf:type ontology:parish }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q18012128
P17
Q15617994
USER
Which administrative territory is that parish situated in ?
(Q18012128,P17,c(Q15617994))
action filter_type
action find
entity Q18012128
relation P17
type Q15617994
['Q18012128', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { resource:Q18012128 property:P17 ?s . ?s rdf:type ontology:Q15617994 }
Church of Sweden in New York
action filter_type
action find
entity Church of Sweden in New York
relation country
type designation for an administrative territorial entity
['Church of Sweden in New York', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Church_of_Sweden_in_New_York property:country ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q18012128,P17,c(Q15617994))
action filter_type
action find
entity Q18012128
relation P17
type Q15617994
That parish is situated in [ANSWER]
['Q18012128', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { resource:Q18012128 property:P17 ?s . ?s rdf:type ontology:Q15617994 }
United States of America
That parish is situated in United States of America
United States of America
action filter_type
action find
entity Church of Sweden in New York
relation country
type designation for an administrative territorial entity
['Church of Sweden in New York', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Church_of_Sweden_in_New_York property:country ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q60 Q1776414
P6
Q502895
USER
How many people are the heads of the government of New York City or Klosterkammer Hanover ?
(Q60,P6,c(Q502895)) (Q1776414,P6,c(Q502895))
action count
action union
action filter_type
action find
entity Q60
relation P6
type Q502895
action filter_type
action find
entity Q1776414
relation P6
type Q502895
['Q60', 'P6', {'concept': 'Q502895'}] ['Q1776414', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?p ) WHERE { { resource:Q60 property:P6 ?j . ?j rdf:type ontology:Q502895 } UNION { resource:Q1776414 property:P6 ?j . ?j rdf:type ontology:Q502895 } }
New York City Klosterkammer Hanover
action count
action union
action filter_type
action find
entity New York City
relation head of government
type common name
action filter_type
action find
entity Klosterkammer Hanover
relation head of government
type common name
['New York City', 'head of government', {'concept': 'common name'}] ['Klosterkammer Hanover', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?p ) WHERE { { resource:New_York_City property:head_of_government ?j . ?j rdf:type ontology:common_name } UNION { resource:Klosterkammer_Hanover property:head_of_government ?j . ?j rdf:type ontology:common_name } }
[]
common name
SYSTEM
30
Q204135 Q1455503 Q1576771 Q1533903 Q1504563 Q441554 Q119429 Q2156376 Q939458 Q607 Q6233903 Q212648 Q4121154 Q792110 Q666931 Q5536568 Q467133 Q312502 Q2274772 Q1448783 Q2544704 Q6287566 Q467122 Q3182321 Q329910 Q4911497 Q1701296 Q1603415 Q439156 Q1791651
(Q60,P6,c(Q502895)) (Q1776414,P6,c(Q502895))
action count
action union
action filter_type
action find
entity Q60
relation P6
type Q502895
action filter_type
action find
entity Q1776414
relation P6
type Q502895
[ANSWER]
['Q60', 'P6', {'concept': 'Q502895'}] ['Q1776414', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?p ) WHERE { { resource:Q60 property:P6 ?j . ?j rdf:type ontology:Q502895 } UNION { resource:Q1776414 property:P6 ?j . ?j rdf:type ontology:Q502895 } }
Jimmy Walker Albrecht Stalmann Hans-Christian Biallas Herbert Weyher Georg Haccius William O'Dwyer Walther Herwig Robert Anderson Van Wyck Vincent R. Impellitteri Michael Bloomberg John Francis Hylan Rudy Giuliani Ardolph L. Kline Axel Campenhausen John Lindsay George B. McClellan, Jr. David Dinkins Fiorello H. La Guardia Seth Low Franz Rotzoll William Jay Gaynor Joseph V. McKee Ed Koch John Purroy Mitchel Abraham Beame Bill de Blasio John P. O'Brien Helmut Bojunga Robert F. Wagner Louis Leopold Sauerhering
30
action count
action union
action filter_type
action find
entity New York City
relation head of government
type common name
action filter_type
action find
entity Klosterkammer Hanover
relation head of government
type common name
['New York City', 'head of government', {'concept': 'common name'}] ['Klosterkammer Hanover', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?p ) WHERE { { resource:New_York_City property:head_of_government ?j . ?j rdf:type ontology:common_name } UNION { resource:Klosterkammer_Hanover property:head_of_government ?j . ?j rdf:type ontology:common_name } }
[]