Simple Question (Direct)
Simple Question
Q7699072
P27
Q15617994
USER
Which administrative territory is the native country of Temryss Lane ?
(Q7699072,P27,c(Q15617994))
action filter_type
action find
entity Q7699072
relation P27
type Q15617994
['Q7699072', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { resource:Q7699072 property:P27 ?p . ?p rdf:type ontology:Q15617994 }
Temryss Lane
action filter_type
action find
entity Temryss Lane
relation country of citizenship
type designation for an administrative territorial entity
['Temryss Lane', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Temryss_Lane property:country_of_citizenship ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q7699072,P27,c(Q15617994))
action filter_type
action find
entity Q7699072
relation P27
type Q15617994
[ANSWER] is the native country of Temryss Lane
['Q7699072', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { resource:Q7699072 property:P27 ?p . ?p rdf:type ontology:Q15617994 }
United States of America
United States of America is the native country of Temryss Lane
United States of America
action filter_type
action find
entity Temryss Lane
relation country of citizenship
type designation for an administrative territorial entity
['Temryss Lane', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Temryss_Lane property:country_of_citizenship ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7699072
P54
Q12973014
USER
What is that person a member of ?
(Q30,P54,c(Q12973014))
action filter_type
action find
entity Q7699072
relation P54
type Q12973014
['Q30', 'P54', {'concept': 'Q12973014'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q12973014 . resource:Q7699072 property:P54 ?l }
Temryss Lane
action filter_type
action find
entity Temryss Lane
relation member of sports team
type sports team
['United States of America', 'member of sports team', {'concept': 'sports team'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:sports_team . resource:Temryss_Lane property:member_of_sports_team ?l }
[]
sports team
Q16154053
SYSTEM
Ajax America Women
Q16154053
(Q30,P54,c(Q12973014))
action filter_type
action find
entity Q7699072
relation P54
type Q12973014
That person a member of is the [ANSWER]
['Q30', 'P54', {'concept': 'Q12973014'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q12973014 . resource:Q7699072 property:P54 ?l }
Ajax America Women
That person a member of is the Ajax America Women
Ajax America Women
action filter_type
action find
entity Temryss Lane
relation member of sports team
type sports team
['United States of America', 'member of sports team', {'concept': 'sports team'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:sports_team . resource:Temryss_Lane property:member_of_sports_team ?l }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7699072
P641
Q349
USER
Which sport was that person a part of ?
(Q16154053,P641,c(Q349))
action filter_type
action find
entity Q7699072
relation P641
type Q349
['Q16154053', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?c WHERE { resource:Q7699072 property:P641 ?c . ?c rdf:type ontology:Q349 }
Temryss Lane
action filter_type
action find
entity Temryss Lane
relation sport
type sport
['Ajax America Women', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?c WHERE { resource:Temryss_Lane property:sport ?c . ?c rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q16154053,P641,c(Q349))
action filter_type
action find
entity Q7699072
relation P641
type Q349
Football [ANSWER] was that person a part of
['Q16154053', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?c WHERE { resource:Q7699072 property:P641 ?c . ?c rdf:type ontology:Q349 }
association football
Football association football was that person a part of
association football
action filter_type
action find
entity Temryss Lane
relation sport
type sport
['Ajax America Women', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?c WHERE { resource:Temryss_Lane property:sport ?c . ?c rdf:type ontology:sport }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P641
Q349 Q18608583 Q500834
USER
How many sports did around 109 recurring sporting events or tournaments participate in ?
(c(Q18608583)|c(Q500834),P641,c(Q349))
action count
action approx
action union
action find_reverse_tuple_counts
relation P641
type Q349
type Q18608583
action find_reverse_tuple_counts
relation P641
type Q349
type Q500834
value 109
[[{'concept': 'Q18608583'}, {'concept': 'Q500834'}], 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?a ) WHERE { FILTER ( ?h = 109 ) . { SELECT DISTINCT ?j ( COUNT ( ?e ) AS ?h ) WHERE { { ?e property:P641 ?j . ?j rdf:type ontology:Q349 . ?e rdf:type ontology:Q18608583 } UNION { ?e property:P641 ?j . ?j rdf:type ontology:Q349 . ?e rdf:type ontology:Q500834 } } GROUP BY ?j } }
action count
action approx
action union
action find_reverse_tuple_counts
relation sport
type sport
type recurring sporting event
action find_reverse_tuple_counts
relation sport
type sport
type tournament
value 109
[[{'concept': 'recurring sporting event'}, {'concept': 'tournament'}], 'sport', {'concept': 'sport'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?a ) WHERE { FILTER ( ?h = 109 ) . { SELECT DISTINCT ?j ( COUNT ( ?e ) AS ?h ) WHERE { { ?e property:sport ?j . ?j rdf:type ontology:sport . ?e rdf:type ontology:recurring_sporting_event } UNION { ?e property:sport ?j . ?j rdf:type ontology:sport . ?e rdf:type ontology:tournament } } GROUP BY ?j } }
[]
sport recurring sporting event tournament
SYSTEM
178
Q10962 Q1109032 Q4543 Q170737 Q114466 Q12100 Q500050 Q2348250 Q3337306 Q7707 Q193387 Q108429 Q171038 Q191051 Q17163326 Q4808504 Q3844480 Q809831 Q1575010 Q206763 Q133201 Q244700 Q1497658 Q902378 Q1761866 Q192832 Q1148620 Q601972 Q46241 Q83462 Q192937 Q3372565 Q208607 Q188966 Q961015 Q328716 Q131359 Q27672886 Q22857 Q657196 Q11420 Q338208 Q41323 Q738622 Q148636 Q136851 Q2887217 Q7856 Q599204 Q5372 Q5375 Q5377 Q206989 Q5369 Q690676 Q8418 Q31897 Q74542 Q1050588 Q1758324 Q1457676 Q592031 Q1345388 Q102843 Q754586 Q1682809 Q40561 Q42486 Q1295867 Q2483334 Q2922870 Q1143202 Q41466 Q850256 Q204632 Q627165 Q393808 Q213796 Q1866478 Q182570 Q2302906 Q989473 Q1194269 Q2497700 Q231200 Q990637 Q105674 Q215862 Q212845 Q1358545 Q1757181 Q1145338 Q2250158 Q212434 Q43450 Q6034982 Q12834857 Q61065 Q2284014 Q221635 Q4429020 Q2413978 Q13108218 Q4851143 Q14300548 Q1455 Q2215841 Q36908 Q1081491 Q483693 Q389654 Q61465 Q185851 Q4245261 Q624161 Q327742 Q213711 Q271277 Q3177899 Q376040 Q4347112 Q5465793 Q3930 Q797108 Q963312 Q2167372 Q130949 Q535116 Q2360406 Q20856109 Q16996906 Q213934 Q1078835 Q838781 Q26787631 Q1899731 Q201965 Q943526 Q647559 Q1541373 Q606060 Q1150656 Q1063445 Q134211 Q1734 Q31920 Q6140386 Q3325635 Q207703 Q2701632 Q1875777 Q1358925 Q1748406 Q667692 Q183018 Q1622659 Q1421697 Q201252 Q177275 Q32112 Q14405929 Q1129021 Q1199515 Q178678 Q17988507 Q6350707 Q159992 Q3924425 Q3341285 Q210778 Q192420 Q1784241 Q1188693 Q204686 Q1055193 Q124100 Q2440459 Q429006
(c(Q18608583)|c(Q500834),P641,c(Q349))
action count
action approx
action union
action find_reverse_tuple_counts
relation P641
type Q349
type Q18608583
action find_reverse_tuple_counts
relation P641
type Q349
type Q500834
value 109
[ANSWER]
[[{'concept': 'Q18608583'}, {'concept': 'Q500834'}], 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?a ) WHERE { FILTER ( ?h = 109 ) . { SELECT DISTINCT ?j ( COUNT ( ?e ) AS ?h ) WHERE { { ?e property:P641 ?j . ?j rdf:type ontology:Q349 . ?e rdf:type ontology:Q18608583 } UNION { ?e property:P641 ?j . ?j rdf:type ontology:Q349 . ?e rdf:type ontology:Q500834 } } GROUP BY ?j } }
rugby league college football beach volleyball long jump mixed martial arts fencing cross country running team time trial yachting water polo croquet archery softball windsurfing motorcycle racing snocross rink bandy BASE jumping para rowing floorball squash Ultimate memory sport equestrian sport puroresu paintball Finswimming Camogie drag racing weightlifting korfball Kettlebell lifting kung fu contract bridge women's boxing motorcycle sport professional wrestling Flying disc games climbing medley swimming judo giant slalom skiing American football dancesport Kabaddi curling women's basketball rallying rallycross basketball cricket golf shooting sport baseball canoe polo handball natural track luge para-alpine skiing fistball stock car racing rackets wingsuit flying greyhound racing tug of war racquetball pair skating sumo wrestling pesäpallo Valencian pilota boxe roque ice hockey shinty Gaelic football Harri-jasotze Dog agility powerlifting American handball discus throw Box lacrosse international draughts harness racing Aizkolaritza netball Broomball running motocross Basque pelota arena football paralympic athletics Adventure racing five-a-side football Olympic sport gymnastics Inline skating strength training water sport Contact sport track cycling competition aerobatics paralympic swimming gymnastics balkline and straight rail skating field hockey cycle sport mountaineering football parkour Greco-Roman wrestling rhythmic gymnastics lacrosse touring car racing gliding relay race hurling Savate bowling wakeboarding strength athletics CP football table tennis jeu de paume Sledge hockey fell running skiing beach handball real tennis canoeing Indoor American football canoeing and kayaking Powerchair Football eventing K-1 Frisian handball Nordic combined Castell Goalball sport climbing women's association football wheelchair curling nine-ball polo volleyball swimming Kitō-ryū Valencian trinquet rodeo muggle quidditch air racing speed skiing roller hockey (quad) Nordic walking bandy hockey Chilean rodeo pankration bobsleigh boxing high diving super giant slalom skiing formula racing kick boxing women's tennis Kalari surfing combined track and field events cue sports beach soccer Kart racing korbball mind sport winter sport pallone bodybuilding wheelchair fencing Duathlon
178
action count
action approx
action union
action find_reverse_tuple_counts
relation sport
type sport
type recurring sporting event
action find_reverse_tuple_counts
relation sport
type sport
type tournament
value 109
[[{'concept': 'recurring sporting event'}, {'concept': 'tournament'}], 'sport', {'concept': 'sport'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?a ) WHERE { FILTER ( ?h = 109 ) . { SELECT DISTINCT ?j ( COUNT ( ?e ) AS ?h ) WHERE { { ?e property:sport ?j . ?j rdf:type ontology:sport . ?e rdf:type ontology:recurring_sporting_event } UNION { ?e property:sport ?j . ?j rdf:type ontology:sport . ?e rdf:type ontology:tournament } } GROUP BY ?j } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P1923
Q12973014 Q13406554 Q15991303
USER
Which sports teams competed in exactly 8 sport competitions and association football leagues ?
(c(Q13406554)|c(Q15991303),P1923,c(Q12973014))
action equal
action union
action find_reverse_tuple_counts
relation P1923
type Q12973014
type Q13406554
action find_reverse_tuple_counts
relation P1923
type Q12973014
type Q15991303
value 8
[[{'concept': 'Q13406554'}, {'concept': 'Q15991303'}], 'P1923', {'concept': 'Q12973014'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?m ) ?w WHERE { VALUES ( ?p ) { ( ontology:Q13406554 ) ( ontology:Q15991303 ) } . ?g rdf:type ?p } GROUP BY ?w } . FILTER ( ?m = 8 ) }
action equal
action union
action find_reverse_tuple_counts
relation participating teams
type sports team
type sport competition
action find_reverse_tuple_counts
relation participating teams
type sports team
type association football league
value 8
[[{'concept': 'sport competition'}, {'concept': 'association football league'}], 'participating teams', {'concept': 'sports team'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?m ) ?w WHERE { VALUES ( ?p ) { ( ontology:sport_competition ) ( ontology:association_football_league ) } . ?g rdf:type ?p } GROUP BY ?w } . FILTER ( ?m = 8 ) }
[]
sports team sport competition association football league
Q27146485 Q27146494
SYSTEM
Israel national badminton team, Lithuania national badminton team
Q27146485 Q27146494
(c(Q13406554)|c(Q15991303),P1923,c(Q12973014))
action equal
action union
action find_reverse_tuple_counts
relation P1923
type Q12973014
type Q13406554
action find_reverse_tuple_counts
relation P1923
type Q12973014
type Q15991303
value 8
[ANSWERS] competed in exactly 8 sport competitions and association football leagues
[[{'concept': 'Q13406554'}, {'concept': 'Q15991303'}], 'P1923', {'concept': 'Q12973014'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?m ) ?w WHERE { VALUES ( ?p ) { ( ontology:Q13406554 ) ( ontology:Q15991303 ) } . ?g rdf:type ?p } GROUP BY ?w } . FILTER ( ?m = 8 ) }
Israel national badminton team Lithuania national badminton team
Israel national badminton team and Lithuania national badminton team competed in exactly 8 sport competitions and association football leagues
Israel national badminton team Lithuania national badminton team
action equal
action union
action find_reverse_tuple_counts
relation participating teams
type sports team
type sport competition
action find_reverse_tuple_counts
relation participating teams
type sports team
type association football league
value 8
[[{'concept': 'sport competition'}, {'concept': 'association football league'}], 'participating teams', {'concept': 'sports team'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?m ) ?w WHERE { VALUES ( ?p ) { ( ontology:sport_competition ) ( ontology:association_football_league ) } . ?g rdf:type ?p } GROUP BY ?w } . FILTER ( ?m = 8 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q2660964 Q7699072
P19
Q56061
USER
Which administrative territories are the birthplace of Temryss Lane or Bernhard Degenhard ?
OR((Q7699072,P19,c(Q56061)), (Q2660964,P19,c(Q56061)))
action filter_type
action union
action find
entity Q7699072
relation P19
action find
entity Q2660964
relation P19
type Q56061
{'OR': [['Q7699072', 'P19', {'concept': 'Q56061'}], ['Q2660964', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?u WHERE { { ?l property:P19 ?u . VALUES ( ?l ) { ( resource:Q7699072 ) ( resource:Q2660964 ) } } . ?u rdf:type ontology:Q56061 }
Bernhard Degenhard Temryss Lane
action filter_type
action union
action find
entity Temryss Lane
relation place of birth
action find
entity Bernhard Degenhard
relation place of birth
type administrative territorial entity
{'OR': [['Temryss Lane', 'place of birth', {'concept': 'administrative territorial entity'}], ['Bernhard Degenhard', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { ?l property:place_of_birth ?u . VALUES ( ?l ) { ( resource:Temryss_Lane ) ( resource:Bernhard_Degenhard ) } } . ?u rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q430267 Q2066
SYSTEM
Bellingham, Essen
Q430267 Q2066
OR((Q7699072,P19,c(Q56061)), (Q2660964,P19,c(Q56061)))
action filter_type
action union
action find
entity Q7699072
relation P19
action find
entity Q2660964
relation P19
type Q56061
[ANSWERS] are the birthplace of Temryss Lane or Bernhard Degenhard
{'OR': [['Q7699072', 'P19', {'concept': 'Q56061'}], ['Q2660964', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?u WHERE { { ?l property:P19 ?u . VALUES ( ?l ) { ( resource:Q7699072 ) ( resource:Q2660964 ) } } . ?u rdf:type ontology:Q56061 }
Bellingham Essen
Bellingham and Essen are the birthplace of Temryss Lane or Bernhard Degenhard
Bellingham Essen
action filter_type
action union
action find
entity Temryss Lane
relation place of birth
action find
entity Bernhard Degenhard
relation place of birth
type administrative territorial entity
{'OR': [['Temryss Lane', 'place of birth', {'concept': 'administrative territorial entity'}], ['Bernhard Degenhard', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { ?l property:place_of_birth ?u . VALUES ( ?l ) { ( resource:Temryss_Lane ) ( resource:Bernhard_Degenhard ) } } . ?u rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q1600181 Q2660964
P27
Q1048835
USER
Which political territories do Bernhard Degenhard and Helmut Körschgen belong to ?
AND((Q2660964,P27,c(Q1048835)), (Q1600181,P27,c(Q1048835)))
action filter_type
action intersection
action find
entity Q2660964
relation P27
action find
entity Q1600181
relation P27
type Q1048835
{'AND': [['Q2660964', 'P27', {'concept': 'Q1048835'}], ['Q1600181', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?t WHERE { resource:Q2660964 property:P27 ?t . resource:Q1600181 property:P27 ?t . ?t rdf:type ontology:Q1048835 }
Helmut Körschgen Bernhard Degenhard
action filter_type
action intersection
action find
entity Bernhard Degenhard
relation country of citizenship
action find
entity Helmut Körschgen
relation country of citizenship
type political territorial entity
{'AND': [['Bernhard Degenhard', 'country of citizenship', {'concept': 'political territorial entity'}], ['Helmut Körschgen', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?t WHERE { resource:Bernhard_Degenhard property:country_of_citizenship ?t . resource:Helmut_Körschgen property:country_of_citizenship ?t . ?t rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
AND((Q2660964,P27,c(Q1048835)), (Q1600181,P27,c(Q1048835)))
action filter_type
action intersection
action find
entity Q2660964
relation P27
action find
entity Q1600181
relation P27
type Q1048835
Bernhard Degenhard and Helmut Körschgen belong to Nazi [ANSWER]
{'AND': [['Q2660964', 'P27', {'concept': 'Q1048835'}], ['Q1600181', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?t WHERE { resource:Q2660964 property:P27 ?t . resource:Q1600181 property:P27 ?t . ?t rdf:type ontology:Q1048835 }
Germany
Bernhard Degenhard and Helmut Körschgen belong to Nazi Germany
Germany
action filter_type
action intersection
action find
entity Bernhard Degenhard
relation country of citizenship
action find
entity Helmut Körschgen
relation country of citizenship
type political territorial entity
{'AND': [['Bernhard Degenhard', 'country of citizenship', {'concept': 'political territorial entity'}], ['Helmut Körschgen', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?t WHERE { resource:Bernhard_Degenhard property:country_of_citizenship ?t . resource:Helmut_Körschgen property:country_of_citizenship ?t . ?t rdf:type ontology:political_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q1034159
P291
Q56061 Q1002697 Q11032
USER
Which administrative territories are the places of publication of greater number of periodical literatures or newspapers than Harstad ?
(c(Q1002697)|c(Q11032),P291,c(Q56061))
action greater
action union
action find_reverse_tuple_counts
relation P291
type Q56061
type Q1002697
action find_reverse_tuple_counts
relation P291
type Q56061
type Q11032
action count
action filter_multi_types
action find_reverse
entity Q1034159
relation P291
type Q1002697
type Q11032
[[{'concept': 'Q1002697'}, {'concept': 'Q11032'}], 'P291', {'concept': 'Q56061'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?z ) ?g WHERE { { ?h property:P291 ?g . ?g rdf:type ontology:Q56061 . ?h rdf:type ontology:Q1002697 } UNION { ?h property:P291 ?g . ?g rdf:type ontology:Q56061 . ?h rdf:type ontology:Q11032 } } GROUP BY ?g } . FILTER ( ?z > ?j ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?j ) WHERE { { { ?q rdf:type ontology:Q1002697 } UNION { ?q rdf:type ontology:Q11032 } } . ?q property:P291 resource:Q1034159 } } }
Harstad
action greater
action union
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type periodical literature
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type newspaper
action count
action filter_multi_types
action find_reverse
entity Harstad
relation place of publication
type periodical literature
type newspaper
[[{'concept': 'periodical literature'}, {'concept': 'newspaper'}], 'place of publication', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?z ) ?g WHERE { { ?h property:place_of_publication ?g . ?g rdf:type ontology:administrative_territorial_entity . ?h rdf:type ontology:periodical_literature } UNION { ?h property:place_of_publication ?g . ?g rdf:type ontology:administrative_territorial_entity . ?h rdf:type ontology:newspaper } } GROUP BY ?g } . FILTER ( ?z > ?j ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?j ) WHERE { { { ?q rdf:type ontology:periodical_literature } UNION { ?q rdf:type ontology:newspaper } } . ?q property:place_of_publication resource:Harstad } } }
[]
administrative territorial entity periodical literature newspaper
Q1085 Q72 Q649
SYSTEM
Prague, Zürich, Moscow
Q10305 Q8692 Q8851 Q1757 Q1022 Q99151 Q90 Q48329 Q7880 Q5836 Q12411 Q8818 Q11125 Q8810 Q1489 Q2044 Q72 Q239 Q16555 Q3130 Q84 Q71 Q60 Q15678 Q14318 Q14314 Q5092 Q15090 Q1492 Q8745 Q2807 Q12225 Q220 Q10282 Q472 Q9580 Q8356 Q1726 Q11967 Q8717 Q64 Q207891 Q61 Q10313 Q649 Q15699 Q485329 Q15696 Q8757 Q47048 Q125080 Q648 Q12233 Q8826 Q1085
(c(Q1002697)|c(Q11032),P291,c(Q56061))
action greater
action union
action find_reverse_tuple_counts
relation P291
type Q56061
type Q1002697
action find_reverse_tuple_counts
relation P291
type Q56061
type Q11032
action count
action filter_multi_types
action find_reverse
entity Q1034159
relation P291
type Q1002697
type Q11032
[ANSWERS] are the places of publication of greater number of periodical literatures or newspapers than Harstad
[[{'concept': 'Q1002697'}, {'concept': 'Q11032'}], 'P291', {'concept': 'Q56061'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?z ) ?g WHERE { { ?h property:P291 ?g . ?g rdf:type ontology:Q56061 . ?h rdf:type ontology:Q1002697 } UNION { ?h property:P291 ?g . ?g rdf:type ontology:Q56061 . ?h rdf:type ontology:Q11032 } } GROUP BY ?g } . FILTER ( ?z > ?j ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?j ) WHERE { { { ?q rdf:type ontology:Q1002697 } UNION { ?q rdf:type ontology:Q11032 } } . ?q property:P291 resource:Q1034159 } } }
Zaragoza Bilbao Málaga Helsinki Stuttgart Ourense Paris Mariehamn Toulouse Toledo Pontevedra Valencia Lugo Granada Mexico City Florence Zürich Brussels Houston Sydney London Geneva New York City Cáceres Vitoria-Gasteiz Santiago de Compostela Baltimore Lleida Barcelona Vigo Madrid Murcia Rome Pamplona Sofia Burgos Valladolid Munich Huesca Seville Berlin Kokkola Washington, D.C. Donostia/San Sebastián Moscow León Ferrol Zamora A Coruña Oulu Vaasa Lille Santander Palma Prague
Prague, Zürich and Moscow are the places of publication of greater number of periodical literatures or newspapers than Harstad
Prague Zürich Moscow
action greater
action union
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type periodical literature
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type newspaper
action count
action filter_multi_types
action find_reverse
entity Harstad
relation place of publication
type periodical literature
type newspaper
[[{'concept': 'periodical literature'}, {'concept': 'newspaper'}], 'place of publication', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?z ) ?g WHERE { { ?h property:place_of_publication ?g . ?g rdf:type ontology:administrative_territorial_entity . ?h rdf:type ontology:periodical_literature } UNION { ?h property:place_of_publication ?g . ?g rdf:type ontology:administrative_territorial_entity . ?h rdf:type ontology:newspaper } } GROUP BY ?g } . FILTER ( ?z > ?j ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?j ) WHERE { { { ?q rdf:type ontology:periodical_literature } UNION { ?q rdf:type ontology:newspaper } } . ?q property:place_of_publication resource:Harstad } } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q1085 Q72 Q649
P190
Q13220204
USER
Which administrative country subdivisions are sister town of those administrative territories ?
(c(Q13220204),P190,Q1085) (c(Q13220204),P190,Q72) (c(Q13220204),P190,Q649)
action filter_type
action find
entity prev_answer
relation P190
type Q13220204
[{'concept': 'Q13220204'}, 'P190', 'Q1085'] [{'concept': 'Q13220204'}, 'P190', 'Q72'] [{'concept': 'Q13220204'}, 'P190', 'Q649']
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q13220204 . ?l property:P190 ?t . VALUES ( ?l ) { ( resource:Q10305 ) ( resource:Q8692 ) ( resource:Q8851 ) } }
Prague Zürich Moscow
action filter_type
action find
entity prev_answer
relation sister city
type second-level administrative country subdivision
[{'concept': 'second-level administrative country subdivision'}, 'sister city', 'Prague'] [{'concept': 'second-level administrative country subdivision'}, 'sister city', 'Zürich'] [{'concept': 'second-level administrative country subdivision'}, 'sister city', 'Moscow']
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:second-level_administrative_country_subdivision . ?l property:sister_city ?t . VALUES ( ?l ) { ( resource:Zaragoza ) ( resource:Bilbao ) ( resource:Málaga ) } }
[]
second-level administrative country subdivision
Q9899 Q9899 Q157144
SYSTEM
Vinnytsia for 3rd, Amsterdam for 1st, 2nd
Q9899 Q157144 Q9899 Q156711
(c(Q13220204),P190,Q1085) (c(Q13220204),P190,Q72) (c(Q13220204),P190,Q649)
action filter_type
action find
entity prev_answer
relation P190
type Q13220204
[ANSWERS]
[{'concept': 'Q13220204'}, 'P190', 'Q1085'] [{'concept': 'Q13220204'}, 'P190', 'Q72'] [{'concept': 'Q13220204'}, 'P190', 'Q649']
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q13220204 . ?l property:P190 ?t . VALUES ( ?l ) { ( resource:Q10305 ) ( resource:Q8692 ) ( resource:Q8851 ) } }
Amsterdam Vinnytsia Amsterdam Uzhhorod
Amsterdam, Amsterdam and Vinnytsia are sister town of those administrative territories
Amsterdam Amsterdam Vinnytsia
action filter_type
action find
entity prev_answer
relation sister city
type second-level administrative country subdivision
[{'concept': 'second-level administrative country subdivision'}, 'sister city', 'Prague'] [{'concept': 'second-level administrative country subdivision'}, 'sister city', 'Zürich'] [{'concept': 'second-level administrative country subdivision'}, 'sister city', 'Moscow']
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:second-level_administrative_country_subdivision . ?l property:sister_city ?t . VALUES ( ?l ) { ( resource:Zaragoza ) ( resource:Bilbao ) ( resource:Málaga ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q9899
P6
Q502895
USER
Which person does that administrative country subdivision serve as the head of government for ?
(Q9899,P6,c(Q502895))
action filter_type
action find
entity Q9899
relation P6
type Q502895
['Q9899', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q9899 property:P6 ?j . ?j rdf:type ontology:Q502895 }
Amsterdam
action filter_type
action find
entity Amsterdam
relation head of government
type common name
['Amsterdam', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:Amsterdam property:head_of_government ?j . ?j rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q9899
SYSTEM
Did you mean Amsterdam ?
Q9899 Q9899 Q157144
(Q9899,P6,c(Q502895)) (Q9899,P6,c(Q502895)) (Q157144,P6,c(Q502895))
[ANSWER]
['Q9899', 'P6', {'concept': 'Q502895'}] ['Q9899', 'P6', {'concept': 'Q502895'}] ['Q157144', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q9899 property:P6 ?j . ?j rdf:type ontology:Q502895 }
Amsterdam Amsterdam Vinnytsia
Did you mean Amsterdam ?
Amsterdam
['Amsterdam', 'head of government', {'concept': 'common name'}] ['Amsterdam', 'head of government', {'concept': 'common name'}] ['Vinnytsia', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:Amsterdam property:head_of_government ?j . ?j rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
Yes
(Q9899,P6,c(Q502895))
['Q9899', 'P6', {'concept': 'Q502895'}]
['Amsterdam', 'head of government', {'concept': 'common name'}]
[]
Q1279554
SYSTEM
Eberhard van der Laan
Q1279554
(Q9899,P6,c(Q502895))
action filter_type
action find
entity Q9899
relation P6
type Q502895
That administrative country subdivision serves as the head of government for minister [ANSWER]
['Q9899', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q9899 property:P6 ?j . ?j rdf:type ontology:Q502895 }
Eberhard van der Laan
That administrative country subdivision serves as the head of government for minister Eberhard van der Laan
Eberhard van der Laan
action filter_type
action find
entity Amsterdam
relation head of government
type common name
['Amsterdam', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:Amsterdam property:head_of_government ?j . ?j rdf:type ontology:common_name }
[]