Simple Question (Direct)
Simple Question
Q617215
P19
Q56061
USER
Which administrative territory is the birthplace of Albert Espinosa ?
(Q617215,P19,c(Q56061))
action filter_type
action find
entity Q617215
relation P19
type Q56061
['Q617215', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { resource:Q617215 property:P19 ?a . ?a rdf:type ontology:Q56061 }
Albert Espinosa
action filter_type
action find
entity Albert Espinosa
relation place of birth
type administrative territorial entity
['Albert Espinosa', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Albert_Espinosa property:place_of_birth ?a . ?a rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1492
SYSTEM
Barcelona
Q1492
(Q617215,P19,c(Q56061))
action filter_type
action find
entity Q617215
relation P19
type Q56061
[ANSWER] is the birthplace of Albert Espinosa
['Q617215', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { resource:Q617215 property:P19 ?a . ?a rdf:type ontology:Q56061 }
Barcelona
Barcelona is the birthplace of Albert Espinosa
Barcelona
action filter_type
action find
entity Albert Espinosa
relation place of birth
type administrative territorial entity
['Albert Espinosa', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Albert_Espinosa property:place_of_birth ?a . ?a rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1492
P504
Q2235308
USER
Which ship types have that administrative territory as their home port ?
(c(Q2235308),P504,Q1492)
action filter_type
action find_reverse
entity Q1492
relation P504
type Q2235308
[{'concept': 'Q2235308'}, 'P504', 'Q1492']
SELECT DISTINCT ?d WHERE { ?d property:P504 resource:Q1492 . ?d rdf:type ontology:Q2235308 }
Barcelona
action filter_type
action find_reverse
entity Barcelona
relation home port
type ship type
[{'concept': 'ship type'}, 'home port', 'Barcelona']
SELECT DISTINCT ?d WHERE { ?d property:home_port resource:Barcelona . ?d rdf:type ontology:ship_type }
[]
ship type
Q3066729 Q3472631
SYSTEM
Far Barcelona, Santa Eulàlia
Q3066729 Q3472631
(c(Q2235308),P504,Q1492)
action filter_type
action find_reverse
entity Q1492
relation P504
type Q2235308
[ANSWERS] have that administrative territory as their home port
[{'concept': 'Q2235308'}, 'P504', 'Q1492']
SELECT DISTINCT ?d WHERE { ?d property:P504 resource:Q1492 . ?d rdf:type ontology:Q2235308 }
Far Barcelona Santa Eulàlia
Far Barcelona and Santa Eulàlia have that administrative territory as their home port
Far Barcelona Santa Eulàlia
action filter_type
action find_reverse
entity Barcelona
relation home port
type ship type
[{'concept': 'ship type'}, 'home port', 'Barcelona']
SELECT DISTINCT ?d WHERE { ?d property:home_port resource:Barcelona . ?d rdf:type ontology:ship_type }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P532
Q56061 Q2235308
USER
Which administrative territories serves as the ports of registry of atleast 8 ship types ?
(c(Q2235308),P532,c(Q56061))
action atleast
action find_reverse_tuple_counts
relation P532
type Q56061
type Q2235308
value 8
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?q ) AS ?s ) WHERE { ?q property:P532 ?d . ?d rdf:type ontology:Q56061 . ?q rdf:type ontology:Q2235308 } GROUP BY ?d } . FILTER ( ?s >= 8 ) }
action atleast
action find_reverse_tuple_counts
relation port of registry
type administrative territorial entity
type ship type
value 8
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?q ) AS ?s ) WHERE { ?q property:port_of_registry ?d . ?d rdf:type ontology:administrative_territorial_entity . ?q rdf:type ontology:ship_type } GROUP BY ?d } . FILTER ( ?s >= 8 ) }
[]
administrative territorial entity ship type
Q24826 Q2467
SYSTEM
Liverpool, Nassau
Q24826 Q2467
(c(Q2235308),P532,c(Q56061))
action atleast
action find_reverse_tuple_counts
relation P532
type Q56061
type Q2235308
value 8
[ANSWERS] serve as the ports of registry of atleast 8 ship types
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?q ) AS ?s ) WHERE { ?q property:P532 ?d . ?d rdf:type ontology:Q56061 . ?q rdf:type ontology:Q2235308 } GROUP BY ?d } . FILTER ( ?s >= 8 ) }
Liverpool Nassau
Liverpool and Nassau serve as the ports of registry of atleast 8 ship types
Liverpool Nassau
action atleast
action find_reverse_tuple_counts
relation port of registry
type administrative territorial entity
type ship type
value 8
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?q ) AS ?s ) WHERE { ?q property:port_of_registry ?d . ?d rdf:type ontology:administrative_territorial_entity . ?q rdf:type ontology:ship_type } GROUP BY ?d } . FILTER ( ?s >= 8 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q24826
P740
Q2088357 Q28640
USER
How many musical ensembles and professions were formed at Liverpool ?
(c(Q2088357),P740,Q24826) (c(Q28640),P740,Q24826)
action count
action union
action filter_type
action find_reverse
entity Q24826
relation P740
type Q2088357
action filter_type
action find_reverse
entity Q24826
relation P740
type Q28640
[{'concept': 'Q2088357'}, 'P740', 'Q24826'] [{'concept': 'Q28640'}, 'P740', 'Q24826']
SELECT DISTINCT ( COUNT ( ?c ) AS ?r ) WHERE { { ?c rdf:type ontology:Q2088357 . ?c property:P740 resource:Q24826 } UNION { ?c rdf:type ontology:Q28640 . ?c property:P740 resource:Q24826 } }
Liverpool
action count
action union
action filter_type
action find_reverse
entity Liverpool
relation location of formation
type musical ensemble
action filter_type
action find_reverse
entity Liverpool
relation location of formation
type profession
[{'concept': 'musical ensemble'}, 'location of formation', 'Liverpool'] [{'concept': 'profession'}, 'location of formation', 'Liverpool']
SELECT DISTINCT ( COUNT ( ?c ) AS ?r ) WHERE { { ?c rdf:type ontology:musical_ensemble . ?c property:location_of_formation resource:Liverpool } UNION { ?c rdf:type ontology:profession . ?c property:location_of_formation resource:Liverpool } }
[]
musical ensemble profession
SYSTEM
123 musical ensembles and 3 professions
Q487396 Q7711978 Q16828626 Q7755158 Q5263223 Q1428876 Q462943 Q7717824 Q1988059 Q937900 Q577837 Q7739926 Q490607 Q2412078 Q7761161 Q331713 Q5365215 Q1982673 Q780072 Q7751912 Q1476064 Q831841 Q458284 Q7337255 Q18162543 Q1519941 Q1777045 Q2113011 Q5017413 Q7769928 Q1142296 Q1986442 Q7765877 Q3148930 Q7744916 Q5002122 Q7095228 Q1180965 Q440572 Q1310839 Q1295687 Q7813821 Q5210746 Q7564765 Q7755169 Q300409 Q3521672 Q388573 Q15044928 Q4689422 Q7319882 Q3658527 Q619067 Q283835 Q3155788 Q1128539 Q7196053 Q1297117 Q6888645 Q2033393 Q1625310 Q4903767 Q7762210 Q219811 Q384664 Q16962082 Q7774898 Q1993229 Q2412552 Q5304954 Q4748822 Q2601732 Q208392 Q6934553 Q5457272 Q7761684 Q654650 Q859552 Q7110685 Q1469364 Q18178797 Q1347289 Q585404 Q1527265 Q5189781 Q3849886 Q6875388 Q7811052 Q8046450 Q4656844 Q7460157 Q738714 Q5880293 Q4356488 Q7577009 Q7771409 Q4890035 Q5422613 Q1860769 Q1309275 Q7750725 Q6951364 Q7752181 Q6421017 Q7715529 Q7435381 Q7718469 Q7543639 Q7718362 Q7770339 Q7764712 Q1971690 Q1132434 Q16932131 Q3522443 Q7732406 Q7975284 Q3522161 Q7728025 Q5853967 Q7762809 Q7833172 Q4017821 Q7304146 Q1778436 Q733400
(c(Q2088357),P740,Q24826) (c(Q28640),P740,Q24826)
action count
action union
action filter_type
action find_reverse
entity Q24826
relation P740
type Q2088357
action filter_type
action find_reverse
entity Q24826
relation P740
type Q28640
[ANSWER]
[{'concept': 'Q2088357'}, 'P740', 'Q24826'] [{'concept': 'Q28640'}, 'P740', 'Q24826']
SELECT DISTINCT ( COUNT ( ?c ) AS ?r ) WHERE { { ?c rdf:type ontology:Q2088357 . ?c property:P740 resource:Q24826 } UNION { ?c rdf:type ontology:Q28640 . ?c property:P740 resource:Q24826 } }
Anathema The 747s Lee Curtis and the All-Stars The Onset Derry and the Seniors The Farm The Scaffold The Big Three Bizarre Creations The Spitfire Boys Antimatter The Hokum Clones The Porn Kings The Icicle Works The Roadrunners Rory Storm Ellery Bop Supercharge Cast The Mojos Uniting Nations Ladytron The Real Thing River City People Stealing Sheep Pink Industry The Coral The Fourmost Cahill The Trampformers The Zutons Rage Software The Spinners Imagine Software The Koobas Buster Ooberman Deaf School Remo Four The Swinging Blue Jeans The Dead 60s Tokyo Adventures Dalek I Love You Sound of Guns The Open A Flock of Seagulls The Lotus Eaters The Christians Sunday Jones Afraid of Mice Rezonance Q Care Apollo 440 Carcass It's Immaterial Cook da Books Pink Military The Stands Modern Eon Twin Method Holy Barbarians Bicycle Thieves The Sand Band Zombina and The Skeletones The Quarrymen Original Mirrors The Wild Swans Clinic The Liverbirds Dragged into sunlight Amsterdam Robots in Disguise Atomic Kitten Multi Purpose Chemical Flamingo 50 The Royal Family and the Poor Ibex Big in Japan Our Kid Short Sharp Shock Kingsize Taylor and the Dominoes The Wombats BBMak Hot Club de Paris Crucial Three Marseille Miserylab To My Boy Yachts A Formal Sigh Shack The Merseybeats Holice Ultrabeat Spider The Undertakers Benny Profane Eye Emma Jedi The La's The Rascals The Maybes? N-Force The Moonies Kling Klang The Bandits Scorpio Rising The Black Velvets Smaller The Black Knights The Troubadours The Skylarks The Teardrop Explodes The Searchers Malik & the O.G's The Real People The Escorts Wave Machines The Pale Fountains The Crescent The Little Flames The Seal Cub Clubbing Club Tramp Attack Walkingseeds Red Flag The Boo Radleys Gerry and the Pacemakers
123 musical ensembles and 3 professions
action count
action union
action filter_type
action find_reverse
entity Liverpool
relation location of formation
type musical ensemble
action filter_type
action find_reverse
entity Liverpool
relation location of formation
type profession
[{'concept': 'musical ensemble'}, 'location of formation', 'Liverpool'] [{'concept': 'profession'}, 'location of formation', 'Liverpool']
SELECT DISTINCT ( COUNT ( ?c ) AS ?r ) WHERE { { ?c rdf:type ontology:musical_ensemble . ?c property:location_of_formation resource:Liverpool } UNION { ?c rdf:type ontology:profession . ?c property:location_of_formation resource:Liverpool } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q24826
P190
Q515 Q56061
USER
How many cities and administrative territories are sister towns of Liverpool ?
(Q24826,P190,c(Q515)) (Q24826,P190,c(Q56061))
action count
action union
action filter_type
action find
entity Q24826
relation P190
type Q515
action filter_type
action find
entity Q24826
relation P190
type Q56061
['Q24826', 'P190', {'concept': 'Q515'}] ['Q24826', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?u ) WHERE { { resource:Q24826 property:P190 ?o . ?o rdf:type ontology:Q515 } UNION { resource:Q24826 property:P190 ?o . ?o rdf:type ontology:Q56061 } }
Liverpool
action count
action union
action filter_type
action find
entity Liverpool
relation sister city
type city
action filter_type
action find
entity Liverpool
relation sister city
type administrative territorial entity
['Liverpool', 'sister city', {'concept': 'city'}] ['Liverpool', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?u ) WHERE { { resource:Liverpool property:sister_city ?o . ?o rdf:type ontology:city } UNION { resource:Liverpool property:sister_city ?o . ?o rdf:type ontology:administrative_territorial_entity } }
[]
city administrative territorial entity
SYSTEM
1 cities and 6 administrative territories
Q8686 Q6506 Q8678 Q365 Q1874 Q34370 Q1761
(Q24826,P190,c(Q515)) (Q24826,P190,c(Q56061))
action count
action union
action filter_type
action find
entity Q24826
relation P190
type Q515
action filter_type
action find
entity Q24826
relation P190
type Q56061
[ANSWER]
['Q24826', 'P190', {'concept': 'Q515'}] ['Q24826', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?u ) WHERE { { resource:Q24826 property:P190 ?o . ?o rdf:type ontology:Q515 } UNION { resource:Q24826 property:P190 ?o . ?o rdf:type ontology:Q56061 } }
Shanghai Varna Rio de Janeiro Cologne Odessa Rotterdam Dublin
1 cities and 6 administrative territories
action count
action union
action filter_type
action find
entity Liverpool
relation sister city
type city
action filter_type
action find
entity Liverpool
relation sister city
type administrative territorial entity
['Liverpool', 'sister city', {'concept': 'city'}] ['Liverpool', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?u ) WHERE { { resource:Liverpool property:sister_city ?o . ?o rdf:type ontology:city } UNION { resource:Liverpool property:sister_city ?o . ?o rdf:type ontology:administrative_territorial_entity } }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q131620 Q24826
P190
Q56061
USER
Which administrative territories are twin towns of Liverpool and Natal ?
AND((Q24826,P190,c(Q56061)), (Q131620,P190,c(Q56061)))
action filter_type
action intersection
action find
entity Q24826
relation P190
action find
entity Q131620
relation P190
type Q56061
{'AND': [['Q24826', 'P190', {'concept': 'Q56061'}], ['Q131620', 'P190', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?l WHERE { resource:Q24826 property:P190 ?l . resource:Q131620 property:P190 ?l . ?l rdf:type ontology:Q56061 }
Natal Liverpool
action filter_type
action intersection
action find
entity Liverpool
relation sister city
action find
entity Natal
relation sister city
type administrative territorial entity
{'AND': [['Liverpool', 'sister city', {'concept': 'administrative territorial entity'}], ['Natal', 'sister city', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?l WHERE { resource:Liverpool property:sister_city ?l . resource:Natal property:sister_city ?l . ?l rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q8678
SYSTEM
Rio de Janeiro
Q8678
AND((Q24826,P190,c(Q56061)), (Q131620,P190,c(Q56061)))
action filter_type
action intersection
action find
entity Q24826
relation P190
action find
entity Q131620
relation P190
type Q56061
[ANSWER] is twin towns of Liverpool and Natal
{'AND': [['Q24826', 'P190', {'concept': 'Q56061'}], ['Q131620', 'P190', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?l WHERE { resource:Q24826 property:P190 ?l . resource:Q131620 property:P190 ?l . ?l rdf:type ontology:Q56061 }
Rio de Janeiro
Rio de Janeiro is twin towns of Liverpool and Natal
Rio de Janeiro
action filter_type
action intersection
action find
entity Liverpool
relation sister city
action find
entity Natal
relation sister city
type administrative territorial entity
{'AND': [['Liverpool', 'sister city', {'concept': 'administrative territorial entity'}], ['Natal', 'sister city', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?l WHERE { resource:Liverpool property:sister_city ?l . resource:Natal property:sister_city ?l . ?l rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q8678
P1313
Q12737077
USER
Which occupation is fulfilled by that administrative territory ?
(Q8678,P1313,c(Q12737077))
action filter_type
action find
entity Q8678
relation P1313
type Q12737077
['Q8678', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q12737077 . resource:Q8678 property:P1313 ?h }
Rio de Janeiro
action filter_type
action find
entity Rio de Janeiro
relation office held by head of government
type occupation
['Rio de Janeiro', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:occupation . resource:Rio_de_Janeiro property:office_held_by_head_of_government ?h }
[]
occupation
Q30185
SYSTEM
mayor
Q30185
(Q8678,P1313,c(Q12737077))
action filter_type
action find
entity Q8678
relation P1313
type Q12737077
The [ANSWER] is fulfilled by that administrative territory
['Q8678', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q12737077 . resource:Q8678 property:P1313 ?h }
mayor
The mayor is fulfilled by that administrative territory
mayor
action filter_type
action find
entity Rio de Janeiro
relation office held by head of government
type occupation
['Rio de Janeiro', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:occupation . resource:Rio_de_Janeiro property:office_held_by_head_of_government ?h }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P101
Q12737077 Q43229 Q2342494
USER
How many occupations are the area of greater number of organizations or collectables than that occupation ?
(c(Q43229)|c(Q2342494),P101,c(Q12737077))
action count
action greater
action union
action find_reverse_tuple_counts
relation P101
type Q12737077
type Q43229
action find_reverse_tuple_counts
relation P101
type Q12737077
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q30185
relation P101
type Q43229
type Q2342494
[[{'concept': 'Q43229'}, {'concept': 'Q2342494'}], 'P101', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?l ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?d ) AS ?p ) WHERE { { ?d property:P101 ?m . ?d rdf:type ontology:Q43229 . ?m rdf:type ontology:Q12737077 } UNION { ?m rdf:type ontology:Q12737077 . ?d rdf:type ontology:Q2342494 . ?d property:P101 ?m } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?y ) WHERE { ?e property:P101 resource:Q30185 . { ?e rdf:type ?j . VALUES ( ?j ) { ( ontology:Q43229 ) ( ontology:Q2342494 ) } } } } . FILTER ( ?p > ?y ) }
action count
action greater
action union
action find_reverse_tuple_counts
relation field of work
type occupation
type organization
action find_reverse_tuple_counts
relation field of work
type occupation
type collectable
action count
action filter_multi_types
action find_reverse
entity mayor
relation field of work
type organization
type collectable
[[{'concept': 'organization'}, {'concept': 'collectable'}], 'field of work', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?l ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?d ) AS ?p ) WHERE { { ?d property:field_of_work ?m . ?d rdf:type ontology:organization . ?m rdf:type ontology:occupation } UNION { ?m rdf:type ontology:occupation . ?d rdf:type ontology:collectable . ?d property:field_of_work ?m } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?y ) WHERE { ?e property:field_of_work resource:mayor . { ?e rdf:type ?j . VALUES ( ?j ) { ( ontology:organization ) ( ontology:collectable ) } } } } . FILTER ( ?p > ?y ) }
[]
occupation organization collectable
SYSTEM
2
Q211423 Q15954519
(c(Q43229)|c(Q2342494),P101,c(Q12737077))
action count
action greater
action union
action find_reverse_tuple_counts
relation P101
type Q12737077
type Q43229
action find_reverse_tuple_counts
relation P101
type Q12737077
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q30185
relation P101
type Q43229
type Q2342494
[ANSWER]
[[{'concept': 'Q43229'}, {'concept': 'Q2342494'}], 'P101', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?l ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?d ) AS ?p ) WHERE { { ?d property:P101 ?m . ?d rdf:type ontology:Q43229 . ?m rdf:type ontology:Q12737077 } UNION { ?m rdf:type ontology:Q12737077 . ?d rdf:type ontology:Q2342494 . ?d property:P101 ?m } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?y ) WHERE { ?e property:P101 resource:Q30185 . { ?e rdf:type ?j . VALUES ( ?j ) { ( ontology:Q43229 ) ( ontology:Q2342494 ) } } } } . FILTER ( ?p > ?y ) }
goldsmith alchemist
2
action count
action greater
action union
action find_reverse_tuple_counts
relation field of work
type occupation
type organization
action find_reverse_tuple_counts
relation field of work
type occupation
type collectable
action count
action filter_multi_types
action find_reverse
entity mayor
relation field of work
type organization
type collectable
[[{'concept': 'organization'}, {'concept': 'collectable'}], 'field of work', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?l ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?d ) AS ?p ) WHERE { { ?d property:field_of_work ?m . ?d rdf:type ontology:organization . ?m rdf:type ontology:occupation } UNION { ?m rdf:type ontology:occupation . ?d rdf:type ontology:collectable . ?d property:field_of_work ?m } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?y ) WHERE { ?e property:field_of_work resource:mayor . { ?e rdf:type ?j . VALUES ( ?j ) { ( ontology:organization ) ( ontology:collectable ) } } } } . FILTER ( ?p > ?y ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q30185
P466
Q811430
USER
What is occupied by mayor ?
(c(Q811430),P466,Q30185)
action filter_type
action find_reverse
entity Q30185
relation P466
type Q811430
[{'concept': 'Q811430'}, 'P466', 'Q30185']
SELECT DISTINCT ?h WHERE { ?h property:P466 resource:Q30185 . ?h rdf:type ontology:Q811430 }
mayor
action filter_type
action find_reverse
entity mayor
relation occupant
type construction
[{'concept': 'construction'}, 'occupant', 'mayor']
SELECT DISTINCT ?h WHERE { ?h property:occupant resource:mayor . ?h rdf:type ontology:construction }
[]
construction
Q1309294
SYSTEM
Einsteinhaus Caputh
Q1309294
(c(Q811430),P466,Q30185)
action filter_type
action find_reverse
entity Q30185
relation P466
type Q811430
[ANSWER] is occupied by mayor
[{'concept': 'Q811430'}, 'P466', 'Q30185']
SELECT DISTINCT ?h WHERE { ?h property:P466 resource:Q30185 . ?h rdf:type ontology:Q811430 }
Einsteinhaus Caputh
Einsteinhaus Caputh is occupied by mayor
Einsteinhaus Caputh
action filter_type
action find_reverse
entity mayor
relation occupant
type construction
[{'concept': 'construction'}, 'occupant', 'mayor']
SELECT DISTINCT ?h WHERE { ?h property:occupant resource:mayor . ?h rdf:type ontology:construction }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1309294
P551
Q502895
USER
Which person lives in that construction ?
(c(Q502895),P551,Q1309294)
action filter_type
action find_reverse
entity Q1309294
relation P551
type Q502895
[{'concept': 'Q502895'}, 'P551', 'Q1309294']
SELECT DISTINCT ?m WHERE { ?m property:P551 resource:Q1309294 . ?m rdf:type ontology:Q502895 }
Einsteinhaus Caputh
action filter_type
action find_reverse
entity Einsteinhaus Caputh
relation residence
type common name
[{'concept': 'common name'}, 'residence', 'Einsteinhaus Caputh']
SELECT DISTINCT ?m WHERE { ?m property:residence resource:Einsteinhaus_Caputh . ?m rdf:type ontology:common_name }
[]
common name
Q937
SYSTEM
Albert Einstein
Q937
(c(Q502895),P551,Q1309294)
action filter_type
action find_reverse
entity Q1309294
relation P551
type Q502895
[ANSWER] lives in that construction
[{'concept': 'Q502895'}, 'P551', 'Q1309294']
SELECT DISTINCT ?m WHERE { ?m property:P551 resource:Q1309294 . ?m rdf:type ontology:Q502895 }
Albert Einstein
Albert Einstein lives in that construction
Albert Einstein
action filter_type
action find_reverse
entity Einsteinhaus Caputh
relation residence
type common name
[{'concept': 'common name'}, 'residence', 'Einsteinhaus Caputh']
SELECT DISTINCT ?m WHERE { ?m property:residence resource:Einsteinhaus_Caputh . ?m rdf:type ontology:common_name }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Indirect
P144
Q502895 Q1001378 Q201658
USER
Which people are greater number of cinematic techniques or film genres a fork of than that person ?
(c(Q1001378)|c(Q201658),P144,c(Q502895))
action greater
action union
action find_reverse_tuple_counts
relation P144
type Q502895
type Q1001378
action find_reverse_tuple_counts
relation P144
type Q502895
type Q201658
action count
action filter_multi_types
action find_reverse
entity Q937
relation P144
type Q1001378
type Q201658
[[{'concept': 'Q1001378'}, {'concept': 'Q201658'}], 'P144', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { FILTER ( ?h > ?r ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?r ) WHERE { { { ?a rdf:type ontology:Q1001378 } UNION { ?a rdf:type ontology:Q201658 } } . ?a property:P144 resource:Q937 } } . { SELECT DISTINCT ?n ( COUNT ( ?q ) AS ?h ) WHERE { { ?q property:P144 ?n . ?n rdf:type ontology:Q502895 . ?q rdf:type ontology:Q1001378 } UNION { ?q property:P144 ?n . ?n rdf:type ontology:Q502895 . ?q rdf:type ontology:Q201658 } } GROUP BY ?n } }
action greater
action union
action find_reverse_tuple_counts
relation based on
type common name
type cinematic technique
action find_reverse_tuple_counts
relation based on
type common name
type film genre
action count
action filter_multi_types
action find_reverse
entity Albert Einstein
relation based on
type cinematic technique
type film genre
[[{'concept': 'cinematic technique'}, {'concept': 'film genre'}], 'based on', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { FILTER ( ?h > ?r ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?r ) WHERE { { { ?a rdf:type ontology:cinematic_technique } UNION { ?a rdf:type ontology:film_genre } } . ?a property:based_on resource:Albert_Einstein } } . { SELECT DISTINCT ?n ( COUNT ( ?q ) AS ?h ) WHERE { { ?q property:based_on ?n . ?n rdf:type ontology:common_name . ?q rdf:type ontology:cinematic_technique } UNION { ?q property:based_on ?n . ?n rdf:type ontology:common_name . ?q rdf:type ontology:film_genre } } GROUP BY ?n } }
[]
common name cinematic technique film genre
Q57619 Q7332345 Q6818964
SYSTEM
Frank Wedekind, Rida Johnson Young, Meredith Nicholson
Q7804399 Q4924985 Q3051562 Q5591308 Q5889990 Q7117020 Q4800383 Q4216886 Q7789278 Q5537975 Q7372970 Q6818964 Q5321676 Q6687108 Q5338634 Q5703041 Q6227202 Q5927524 Q4877153 Q7183998 Q6218902 Q4768685 Q7332345 Q4800758 Q5660079 Q4864591 Q6796494 Q6264086 Q57619 Q3036753 Q6523671 Q6104852 Q6796103 Q5487034 Q5588501 Q1681907 Q4974043 Q6721439 Q4885219 Q5345906 Q6284021 Q5665780 Q3262364 Q2580253 Q5082874 Q4877593 Q2835441 Q5342811 Q7167474 Q7146872 Q6832927 Q5538382 Q5201165 Q5345201 Q3037185 Q7668479 Q4225064
(c(Q1001378)|c(Q201658),P144,c(Q502895))
action greater
action union
action find_reverse_tuple_counts
relation P144
type Q502895
type Q1001378
action find_reverse_tuple_counts
relation P144
type Q502895
type Q201658
action count
action filter_multi_types
action find_reverse
entity Q937
relation P144
type Q1001378
type Q201658
[ANSWERS] are greater number of cinematic techniques or film genres a fork of than that person
[[{'concept': 'Q1001378'}, {'concept': 'Q201658'}], 'P144', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { FILTER ( ?h > ?r ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?r ) WHERE { { { ?a rdf:type ontology:Q1001378 } UNION { ?a rdf:type ontology:Q201658 } } . ?a property:P144 resource:Q937 } } . { SELECT DISTINCT ?n ( COUNT ( ?q ) AS ?h ) WHERE { { ?q property:P144 ?n . ?n rdf:type ontology:Q502895 . ?q rdf:type ontology:Q1001378 } UNION { ?q property:P144 ?n . ?n rdf:type ontology:Q502895 . ?q rdf:type ontology:Q201658 } } GROUP BY ?n } }
Tim Toyama Bland Holt Elmer Blaney Harris Grace Miller White Homer Croy P.J. Ramster Arthur Stringer Egerton Castle Thomas Edward Spencer George Clifford Shedd Roy Horniman Meredith Nicholson E. V. Timms Louis Esson Edith O'Shaughnessy Helen Reimensnyder Martin John Cosgrove Hubert Osborne Beatrice Grimshaw Philip Lytton John Ames Mitchell Anne Nichols Rida Johnson Young Arthur Wright Harold Bell Wright Barry Pain May Edginton John Willard Frank Wedekind Brian Oswald Donn-Byrne Leo Ditrichstein J. Breckenridge Ellis Mary Gleed Tuttiett Frank H. Spearman Gouverneur Morris IV Sophie van der Stap Bronson Howard Mabel Forrest Ben Ames Williams Edward William O'Sullivan Joseph Hocking Harrison Owen Louis Joseph Vance William Pittenger Charles Tazewell Beaumont Smith Alfred Savoir Edward Everett Rose Percy Marks Patrick Joseph Hartigan Michael Morton George Darrell Cyrus Woods Edward Salisbury Field Dorothy Scarborough T. Lewis Richard Cobbold
Frank Wedekind, Rida Johnson Young and Meredith Nicholson are greater number of cinematic techniques or film genres a fork of than that person
Frank Wedekind Rida Johnson Young Meredith Nicholson
action greater
action union
action find_reverse_tuple_counts
relation based on
type common name
type cinematic technique
action find_reverse_tuple_counts
relation based on
type common name
type film genre
action count
action filter_multi_types
action find_reverse
entity Albert Einstein
relation based on
type cinematic technique
type film genre
[[{'concept': 'cinematic technique'}, {'concept': 'film genre'}], 'based on', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { FILTER ( ?h > ?r ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?r ) WHERE { { { ?a rdf:type ontology:cinematic_technique } UNION { ?a rdf:type ontology:film_genre } } . ?a property:based_on resource:Albert_Einstein } } . { SELECT DISTINCT ?n ( COUNT ( ?q ) AS ?h ) WHERE { { ?q property:based_on ?n . ?n rdf:type ontology:common_name . ?q rdf:type ontology:cinematic_technique } UNION { ?q property:based_on ?n . ?n rdf:type ontology:common_name . ?q rdf:type ontology:film_genre } } GROUP BY ?n } }
[]