Simple Question (Direct)
Simple Question
Q6169771
P106
Q12737077
USER
What is the profession of Jean-Paul Denis ?
(Q6169771,P106,c(Q12737077))
action filter_type
action find
entity Q6169771
relation P106
type Q12737077
['Q6169771', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?q WHERE { resource:Q6169771 property:P106 ?q . ?q rdf:type ontology:Q12737077 }
Jean-Paul Denis
action filter_type
action find
entity Jean-Paul Denis
relation occupation
type occupation
['Jean-Paul Denis', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?q WHERE { resource:Jean-Paul_Denis property:occupation ?q . ?q rdf:type ontology:occupation }
[]
occupation
Q11774891
SYSTEM
ice hockey player
Q11774891
(Q6169771,P106,c(Q12737077))
action filter_type
action find
entity Q6169771
relation P106
type Q12737077
The profession of Jean-Paul Denis is an [ANSWER]
['Q6169771', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?q WHERE { resource:Q6169771 property:P106 ?q . ?q rdf:type ontology:Q12737077 }
ice hockey player
The profession of Jean-Paul Denis is an ice hockey player
ice hockey player
action filter_type
action find
entity Jean-Paul Denis
relation occupation
type occupation
['Jean-Paul Denis', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?q WHERE { resource:Jean-Paul_Denis property:occupation ?q . ?q rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6169771
P641
Q349
USER
What did that person participate in ?
(Q11774891,P641,c(Q349))
action filter_type
action find
entity Q6169771
relation P641
type Q349
['Q11774891', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?p WHERE { resource:Q6169771 property:P641 ?p . ?p rdf:type ontology:Q349 }
Jean-Paul Denis
action filter_type
action find
entity Jean-Paul Denis
relation sport
type sport
['ice hockey player', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?p WHERE { resource:Jean-Paul_Denis property:sport ?p . ?p rdf:type ontology:sport }
[]
sport
Q41466
SYSTEM
ice hockey
Q41466
(Q11774891,P641,c(Q349))
action filter_type
action find
entity Q6169771
relation P641
type Q349
That person participated in [ANSWER]
['Q11774891', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?p WHERE { resource:Q6169771 property:P641 ?p . ?p rdf:type ontology:Q349 }
ice hockey
That person participated in ice hockey
ice hockey
action filter_type
action find
entity Jean-Paul Denis
relation sport
type sport
['ice hockey player', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?p WHERE { resource:Jean-Paul_Denis property:sport ?p . ?p rdf:type ontology:sport }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2903287
P19
Q56061
USER
Where was Bill Madlock born ?
(Q2903287,P19,c(Q56061))
action filter_type
action find
entity Q2903287
relation P19
type Q56061
['Q2903287', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?o WHERE { resource:Q2903287 property:P19 ?o . ?o rdf:type ontology:Q56061 }
Bill Madlock
action filter_type
action find
entity Bill Madlock
relation place of birth
type administrative territorial entity
['Bill Madlock', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Bill_Madlock property:place_of_birth ?o . ?o rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q16563
SYSTEM
Memphis
Q16563
(Q2903287,P19,c(Q56061))
action filter_type
action find
entity Q2903287
relation P19
type Q56061
Bill Madlock was born in [ANSWER]
['Q2903287', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?o WHERE { resource:Q2903287 property:P19 ?o . ?o rdf:type ontology:Q56061 }
Memphis
Bill Madlock was born in Memphis
Memphis
action filter_type
action find
entity Bill Madlock
relation place of birth
type administrative territorial entity
['Bill Madlock', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Bill_Madlock property:place_of_birth ?o . ?o rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q11916801
Q56061
USER
And what about Delfí Colomé i Pujol?
(Q11916801,P19,c(Q56061))
action filter_type
action find
entity Q11916801
relation P19
type Q56061
['Q11916801', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?t WHERE { resource:Q11916801 property:P19 ?t . ?t rdf:type ontology:Q56061 }
Delfí Colomé i Pujol
action filter_type
action find
entity Delfí Colomé i Pujol
relation place of birth
type administrative territorial entity
['Delfí Colomé i Pujol', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Delfí_Colomé_i_Pujol property:place_of_birth ?t . ?t rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1492
SYSTEM
Barcelona
Q1492
(Q11916801,P19,c(Q56061))
action filter_type
action find
entity Q11916801
relation P19
type Q56061
[ANSWER]
['Q11916801', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?t WHERE { resource:Q11916801 property:P19 ?t . ?t rdf:type ontology:Q56061 }
Barcelona
Barcelona
action filter_type
action find
entity Delfí Colomé i Pujol
relation place of birth
type administrative territorial entity
['Delfí Colomé i Pujol', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Delfí_Colomé_i_Pujol property:place_of_birth ?t . ?t rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q11916801
P21
Q290
USER
Which sex does that person belong to ?
(Q1492,P21,c(Q290))
action filter_type
action find
entity Q11916801
relation P21
type Q290
['Q1492', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q290 . resource:Q11916801 property:P21 ?o }
Delfí Colomé i Pujol
action filter_type
action find
entity Delfí Colomé i Pujol
relation gender
type sex
['Barcelona', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:sex . resource:Delfí_Colomé_i_Pujol property:gender ?o }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q1492,P21,c(Q290))
action filter_type
action find
entity Q11916801
relation P21
type Q290
That person belongs to [ANSWER]
['Q1492', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q290 . resource:Q11916801 property:P21 ?o }
male
That person belongs to male
male
action filter_type
action find
entity Delfí Colomé i Pujol
relation gender
type sex
['Barcelona', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:sex . resource:Delfí_Colomé_i_Pujol property:gender ?o }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q11957372 Q11916801
P21
Q290
USER
Or Alf Roar Berg?
OR((Q11916801,P21,c(Q290)), (Q11957372,P21,c(Q290)))
action filter_type
action union
action find
entity Q11916801
relation P21
action find
entity Q11957372
relation P21
type Q290
{'OR': [['Q11916801', 'P21', {'concept': 'Q290'}], ['Q11957372', 'P21', {'concept': 'Q290'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Q11916801 property:P21 ?v } UNION { resource:Q11957372 property:P21 ?v } } . ?v rdf:type ontology:Q290 }
Alf Roar Berg Delfí Colomé i Pujol
action filter_type
action union
action find
entity Delfí Colomé i Pujol
relation gender
action find
entity Alf Roar Berg
relation gender
type sex
{'OR': [['Delfí Colomé i Pujol', 'gender', {'concept': 'sex'}], ['Alf Roar Berg', 'gender', {'concept': 'sex'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Delfí_Colomé_i_Pujol property:gender ?v } UNION { resource:Alf_Roar_Berg property:gender ?v } } . ?v rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
OR((Q11916801,P21,c(Q290)), (Q11957372,P21,c(Q290)))
action filter_type
action union
action find
entity Q11916801
relation P21
action find
entity Q11957372
relation P21
type Q290
[ANSWER]
{'OR': [['Q11916801', 'P21', {'concept': 'Q290'}], ['Q11957372', 'P21', {'concept': 'Q290'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Q11916801 property:P21 ?v } UNION { resource:Q11957372 property:P21 ?v } } . ?v rdf:type ontology:Q290 }
male
male
action filter_type
action union
action find
entity Delfí Colomé i Pujol
relation gender
action find
entity Alf Roar Berg
relation gender
type sex
{'OR': [['Delfí Colomé i Pujol', 'gender', {'concept': 'sex'}], ['Alf Roar Berg', 'gender', {'concept': 'sex'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Delfí_Colomé_i_Pujol property:gender ?v } UNION { resource:Alf_Roar_Berg property:gender ?v } } . ?v rdf:type ontology:sex }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q1015727
P840
Q56061 Q166142 Q838948
USER
How many administrative territories are lesser number of applications and works of art set in than Mbale ?
(c(Q166142)|c(Q838948),P840,c(Q56061))
action count
action less
action union
action find_reverse_tuple_counts
relation P840
type Q56061
type Q166142
action find_reverse_tuple_counts
relation P840
type Q56061
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q1015727
relation P840
type Q166142
type Q838948
[[{'concept': 'Q166142'}, {'concept': 'Q838948'}], 'P840', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?r ) ?d WHERE { { ?i property:P840 ?d . ?d rdf:type ontology:Q56061 . ?i rdf:type ontology:Q838948 } UNION { ?i property:P840 ?d . ?d rdf:type ontology:Q56061 . ?i rdf:type ontology:Q166142 } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?g ) WHERE { { { ?f rdf:type ontology:Q838948 } UNION { ?f rdf:type ontology:Q166142 } } . ?f property:P840 resource:Q1015727 } } . FILTER ( ?r < ?g ) }
Mbale
action count
action less
action union
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type application
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type work of art
action count
action filter_multi_types
action find_reverse
entity Mbale
relation narrative location
type application
type work of art
[[{'concept': 'application'}, {'concept': 'work of art'}], 'narrative location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?r ) ?d WHERE { { ?i property:narrative_location ?d . ?d rdf:type ontology:administrative_territorial_entity . ?i rdf:type ontology:work_of_art } UNION { ?i property:narrative_location ?d . ?d rdf:type ontology:administrative_territorial_entity . ?i rdf:type ontology:application } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?g ) WHERE { { { ?f rdf:type ontology:work_of_art } UNION { ?f rdf:type ontology:application } } . ?f property:narrative_location resource:Mbale } } . FILTER ( ?r < ?g ) }
[]
administrative territorial entity application work of art
SYSTEM
160
Q3579 Q704257 Q7436 Q34804 Q21075005 Q990616 Q33486 Q1826473 Q28729 Q128499 Q804569 Q467664 Q23725 Q1050826 Q2656 Q1289 Q10690 Q3413045 Q79873 Q81788 Q43453 Q308891 Q2500974 Q7054337 Q12892 Q80734 Q7880 Q82858 Q1930 Q1435589 Q22889 Q3437 Q75459 Q1635139 Q667268 Q25319 Q34739 Q215177 Q27168 Q2048321 Q594807 Q39121 Q48274 Q83317 Q12340599 Q262483 Q2567585 Q37776 Q209055 Q3561 Q2861 Q490 Q6346 Q2044 Q48370 Q2141 Q192517 Q43301 Q1246235 Q6046 Q239 Q25410 Q16558 Q5212975 Q16554 Q16556 Q52437 Q490737 Q14815 Q169492 Q13670 Q1911961 Q128321 Q42462 Q5112 Q1735 Q613441 Q729006 Q64123 Q25390 Q735022 Q11592 Q78 Q70 Q37100 Q2214 Q174 Q37066 Q486439 Q2073798 Q79980 Q82490 Q49241 Q3766 Q472 Q41604 Q2177880 Q1011683 Q41329 Q6225 Q124539 Q2118905 Q134672 Q1479 Q2302168 Q2090 Q127856 Q621549 Q676689 Q271411 Q13496 Q27119 Q494728 Q25331 Q25231 Q617 Q430464 Q21855637 Q30096 Q48292 Q319476 Q162890 Q2634 Q863058 Q268873 Q159232 Q5818 Q384 Q27393 Q12191 Q202337 Q6537 Q49111 Q499196 Q647 Q3012 Q2301524 Q852778 Q3358921 Q323813 Q42735 Q580 Q586 Q43919 Q12340625 Q41262 Q6441 Q165972 Q4190 Q897848 Q350 Q62677 Q1781238 Q3114 Q743521 Q3619316 Q485186 Q42448 Q41970 Q33986
(c(Q166142)|c(Q838948),P840,c(Q56061))
action count
action less
action union
action find_reverse_tuple_counts
relation P840
type Q56061
type Q166142
action find_reverse_tuple_counts
relation P840
type Q56061
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q1015727
relation P840
type Q166142
type Q838948
[ANSWER]
[[{'concept': 'Q166142'}, {'concept': 'Q838948'}], 'P840', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?r ) ?d WHERE { { ?i property:P840 ?d . ?d rdf:type ontology:Q56061 . ?i rdf:type ontology:Q838948 } UNION { ?i property:P840 ?d . ?d rdf:type ontology:Q56061 . ?i rdf:type ontology:Q166142 } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?g ) WHERE { { { ?f rdf:type ontology:Q838948 } UNION { ?f rdf:type ontology:Q166142 } } . ?f property:P840 resource:Q1015727 } } . FILTER ( ?r < ?g ) }
Tripoli Albany Gatchina Albuquerque Serritslev Harwich Hartford Tversted Kozhikode Yalta Bala, Ontario Butte Byzantium Greater Los Angeles Area Palermo Grenoble Cardiff Farsø Tombstone Giza Plzeň special wards of Tokyo Richmond North Buxton, Ontario Antwerp Campagna Toulouse Sigmaringen Ottawa Folsom Bath Perugia Delphi Hvalpsund Nevada City Aarhus Dayton Skagen Randers Varde Søborg Leeds Nashua Mosul Vedersø Deadwood Dybbøl Besançon Torquay Algiers Rostock Milan Indianapolis Florence Manchester Halifax Boulder Fresno Nørresundby Novara Brussels Aalborg Fort Worth Damsholte Denver Phoenix Murano Bloomington Weißenfels Neukölln Syracuse Thorning Midland York Adelaide Innsbruck Middelfart Chatham Meiringen Leeuwarden Walnut Grove, Minnesota Sonoma Basel Bern Auckland Pskov São Paulo Bismarck Cedar Rapids Welch Varanasi Lyme Regis Lexington Damascus Sofia Amiens Ågerup Rødbyhavn Linz Coventry Whitechapel Purley Exeter Bordeaux Kjellerup Nuremberg Beverly Hills Inglewood Gravesend Malindi Brindisi Kolding West Covina Odense Svalbard Padua Dearborn Hvilsager Frederiksberg Arles Cumaná Xanten Naples Summerside Newport Beach Santa Cruz Córdoba Skopje Herning Nantes Nauplion Vicenza Cambridge Costa Mesa Rennes Ulm Stege Whitby Overschild Jamestown Olympia Łódź Bonn Salem Vejlby Nottingham Montpellier Fort Lauderdale Passau Brande Cambridge Karakorum Stureby Canberra Scarborough Grenå Key West Sheffield Pyatigorsk Valparaíso
160
action count
action less
action union
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type application
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type work of art
action count
action filter_multi_types
action find_reverse
entity Mbale
relation narrative location
type application
type work of art
[[{'concept': 'application'}, {'concept': 'work of art'}], 'narrative location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?r ) ?d WHERE { { ?i property:narrative_location ?d . ?d rdf:type ontology:administrative_territorial_entity . ?i rdf:type ontology:work_of_art } UNION { ?i property:narrative_location ?d . ?d rdf:type ontology:administrative_territorial_entity . ?i rdf:type ontology:application } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?g ) WHERE { { { ?f rdf:type ontology:work_of_art } UNION { ?f rdf:type ontology:application } } . ?f property:narrative_location resource:Mbale } } . FILTER ( ?r < ?g ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q34932
P840
Q56061 Q166142 Q838948
USER
And how about Brisbane?
(c(Q166142)|c(Q838948),P840,c(Q56061))
action count
action less
action union
action find_reverse_tuple_counts
relation P840
type Q56061
type Q166142
action find_reverse_tuple_counts
relation P840
type Q56061
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q34932
relation P840
type Q166142
type Q838948
[[{'concept': 'Q166142'}, {'concept': 'Q838948'}], 'P840', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?i ) ?s WHERE { VALUES ( ?r ) { ( ontology:Q166142 ) ( ontology:Q838948 ) } . ?q rdf:type ?r } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?z ) WHERE { { ?c rdf:type ?j . VALUES ( ?j ) { ( ontology:Q166142 ) ( ontology:Q838948 ) } } . ?c property:P840 resource:Q34932 } } . FILTER ( ?i < ?z ) }
Brisbane
action count
action less
action union
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type application
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type work of art
action count
action filter_multi_types
action find_reverse
entity Brisbane
relation narrative location
type application
type work of art
[[{'concept': 'application'}, {'concept': 'work of art'}], 'narrative location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?i ) ?s WHERE { VALUES ( ?r ) { ( ontology:application ) ( ontology:work_of_art ) } . ?q rdf:type ?r } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?z ) WHERE { { ?c rdf:type ?j . VALUES ( ?j ) { ( ontology:application ) ( ontology:work_of_art ) } } . ?c property:narrative_location resource:Brisbane } } . FILTER ( ?i < ?z ) }
[]
administrative territorial entity application work of art
SYSTEM
273
Q3579 Q1715 Q704257 Q7436 Q34804 Q21075005 Q990616 Q33486 Q1874 Q1826473 Q210292 Q28729 Q25286 Q128499 Q2280 Q3805 Q501661 Q804569 Q49233 Q1255278 Q42096 Q467664 Q23725 Q1050826 Q3659 Q23337 Q2656 Q1289 Q10690 Q585 Q124739 Q3413045 Q79873 Q81788 Q43453 Q1022 Q308891 Q2500974 Q7054337 Q80985 Q12892 Q80734 Q7880 Q82858 Q1930 Q1435589 Q690 Q257536 Q334 Q22889 Q3437 Q75459 Q49272 Q12273 Q5836 Q12994 Q1635139 Q667268 Q25319 Q180294 Q8818 Q34739 Q215177 Q27168 Q2048321 Q594807 Q1891 Q39121 Q9427 Q48274 Q83317 Q12340599 Q262483 Q2567585 Q37776 Q209055 Q7094142 Q3561 Q11864 Q462799 Q2861 Q11703 Q2868 Q490 Q6346 Q2044 Q48370 Q3703 Q2141 Q192517 Q54212 Q43301 Q490584 Q1246235 Q6046 Q25416 Q239 Q25410 Q16558 Q5212975 Q16554 Q753121 Q16556 Q994 Q35178 Q113546 Q3037 Q52437 Q723329 Q490737 Q900 Q14815 Q169492 Q26881 Q13670 Q1911961 Q128321 Q42462 Q5112 Q1735 Q1737 Q613441 Q729006 Q64123 Q37320 Q25390 Q214178 Q735022 Q45301 Q25395 Q11592 Q78 Q34863 Q70 Q178168 Q37100 Q16869 Q2214 Q174 Q2028 Q37066 Q486439 Q2073798 Q26887 Q184587 Q208472 Q79980 Q82490 Q79985 Q49241 Q49243 Q3766 Q472 Q41604 Q1070 Q3590079 Q41819 Q2177880 Q5092 Q1011683 Q41329 Q1555 Q1491 Q16562 Q6225 Q437 Q124539 Q2118905 Q134672 Q1479 Q387047 Q2302168 Q690052 Q2090 Q2073211 Q1851 Q127856 Q18705 Q621549 Q49149 Q676689 Q271411 Q13496 Q27119 Q125434 Q494728 Q25331 Q25231 Q25230 Q617 Q430464 Q21855637 Q3305102 Q990168 Q1015727 Q24639 Q34713 Q30096 Q915 Q48292 Q319476 Q985531 Q193082 Q162890 Q1020373 Q23070 Q2634 Q863058 Q1659757 Q268873 Q530090 Q3825 Q159232 Q5818 Q384 Q5813 Q27393 Q12191 Q202337 Q837478 Q184345 Q13362 Q6537 Q6106 Q49111 Q499196 Q495373 Q10313 Q42810 Q647 Q41621 Q3012 Q2301524 Q852778 Q3483936 Q3358921 Q323813 Q158119 Q79848 Q42735 Q580 Q586 Q43919 Q47048 Q12340625 Q2211 Q41262 Q2704 Q47716 Q1040 Q6441 Q165972 Q485172 Q26793 Q4190 Q897848 Q165413 Q350 Q62677 Q1574020 Q3992 Q1781238 Q3114 Q743521 Q630533 Q3619316 Q2751 Q41876 Q485186 Q42448 Q41970 Q34647 Q33986
(c(Q166142)|c(Q838948),P840,c(Q56061))
action count
action less
action union
action find_reverse_tuple_counts
relation P840
type Q56061
type Q166142
action find_reverse_tuple_counts
relation P840
type Q56061
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q34932
relation P840
type Q166142
type Q838948
[ANSWER]
[[{'concept': 'Q166142'}, {'concept': 'Q838948'}], 'P840', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?i ) ?s WHERE { VALUES ( ?r ) { ( ontology:Q166142 ) ( ontology:Q838948 ) } . ?q rdf:type ?r } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?z ) WHERE { { ?c rdf:type ?j . VALUES ( ?j ) { ( ontology:Q166142 ) ( ontology:Q838948 ) } } . ?c property:P840 resource:Q34932 } } . FILTER ( ?i < ?z ) }
Tripoli Hanover Albany Gatchina Albuquerque Serritslev Harwich Hartford Odessa Tversted Yozgat Kozhikode Uppsala Yalta Minsk Amman Schleswig Bala, Ontario Orlando Dragør Miryang Butte Byzantium Greater Los Angeles Area N'Djamena Salt Lake City Palermo Grenoble Cardiff Oslo Tijuana Farsø Tombstone Giza Plzeň Stuttgart special wards of Tokyo Richmond North Buxton, Ontario Fes Antwerp Campagna Toulouse Sigmaringen Ottawa Folsom Delft Janesville Singapore Bath Perugia Delphi Chandler Gijón Toledo Bruges Hvalpsund Nevada City Aarhus Jaffa Valencia Dayton Skagen Randers Varde Søborg Bologna Leeds Timbuktu Nashua Mosul Vedersø Deadwood Dybbøl Besançon Torquay Onllwyn Algiers Junagadh Evanston Rostock United States Virgin Islands Lima Milan Indianapolis Florence Manchester Bamako Halifax Boulder Barnsley Fresno Flint Nørresundby Novara Stavanger Brussels Aalborg Fort Worth Damsholte Denver Atacames Phoenix Tbilisi Kuwait City Blackeberg Kathmandu Murano Ascot Bloomington Kazan Weißenfels Neukölln Helsingør Syracuse Thorning Midland York Adelaide Innsbruck Bregenz Middelfart Chatham Meiringen Cleveland Leeuwarden Nablus Walnut Grove, Minnesota Trabzon Newark Sonoma Basel Oklahoma City Bern Mitrovica Auckland Constantinople Pskov São Paulo Verona Bismarck Cedar Rapids Welch Davenport Grand Rapids Bingöl Varanasi Lyme Regis Kodiak Lexington Riverside Damascus Sofia Amiens Ahmedabad Hvidovre Kansas City Ågerup Baltimore Rødbyhavn Linz Guatemala City La Paz El Paso Coventry Ljubljana Whitechapel Purley Exeter Bordeaux Malibu Kjellerup Trebinje Nuremberg Talamone Arkhangelsk Beverly Hills Bajram Curri Inglewood Nantucket Gravesend Malindi Brindisi Kolding Port Elizabeth West Covina Odense Svalbard Guernsey Padua Dearborn Hvilsager Tsamantas Keighley Mbale Vancouver Salzburg Frederiksberg Perm Arles Cumaná Tulkarm Svishtov Xanten Jindabyne Sneek Naples Summerside Gimli Newport Beach Jerichow Libreville Santa Cruz Córdoba Skopje Canary Islands Herning Nantes Nauplion Sabinov Viña del Mar Ferrara Vicenza Portland Cambridge Costa Mesa Visalia Donostia/San Sebastián Le Havre Rennes Haifa Ulm Stege Whitby Sils Maria Overschild Jamestown Ramallah Southampton Olympia Łódź Bonn Salem Oulu Vejlby Malmö Nottingham Pescara Charleston Karlsruhe Montpellier Fort Lauderdale Ann Arbor Bergen Passau Brande Baikonur Cambridge Karakorum The Hamptons Liège Stureby Canberra Scarborough Tire Grenå Siena Reims Key West Sheffield Pyatigorsk Johannesburg Valparaíso
273
action count
action less
action union
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type application
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type work of art
action count
action filter_multi_types
action find_reverse
entity Brisbane
relation narrative location
type application
type work of art
[[{'concept': 'application'}, {'concept': 'work of art'}], 'narrative location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?i ) ?s WHERE { VALUES ( ?r ) { ( ontology:application ) ( ontology:work_of_art ) } . ?q rdf:type ?r } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?z ) WHERE { { ?c rdf:type ?j . VALUES ( ?j ) { ( ontology:application ) ( ontology:work_of_art ) } } . ?c property:narrative_location resource:Brisbane } } . FILTER ( ?i < ?z ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q16563
P47
Q56061
USER
Which administrative territories are bordered by Memphis ?
(c(Q56061),P47,Q16563)
action filter_type
action find_reverse
entity Q16563
relation P47
type Q56061
[{'concept': 'Q56061'}, 'P47', 'Q16563']
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q56061 . ?t property:P47 resource:Q16563 }
Memphis
action filter_type
action find_reverse
entity Memphis
relation shares border with
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'shares border with', 'Memphis']
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:administrative_territorial_entity . ?t property:shares_border_with resource:Memphis }
[]
administrative territorial entity
Q80050 Q768007
SYSTEM
West Memphis, Southaven
Q80050 Q768007
(c(Q56061),P47,Q16563)
action filter_type
action find_reverse
entity Q16563
relation P47
type Q56061
Are [ANSWERS] are bordered by Memphis
[{'concept': 'Q56061'}, 'P47', 'Q16563']
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q56061 . ?t property:P47 resource:Q16563 }
West Memphis Southaven
Are West Memphis and Southaven are bordered by Memphis
West Memphis Southaven
action filter_type
action find_reverse
entity Memphis
relation shares border with
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'shares border with', 'Memphis']
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:administrative_territorial_entity . ?t property:shares_border_with resource:Memphis }
[]
Clarification
Simple Question|Single Entity|Indirect
Q80050
P931
Q62447
USER
Which city does that administrative territory serve ?
(c(Q62447),P931,Q80050)
action filter_type
action find_reverse
entity Q80050
relation P931
type Q62447
[{'concept': 'Q62447'}, 'P931', 'Q80050']
SELECT DISTINCT ?h WHERE { ?h property:P931 resource:Q80050 . ?h rdf:type ontology:Q62447 }
West Memphis
action filter_type
action find_reverse
entity West Memphis
relation place served by airport
type aerodrome
[{'concept': 'aerodrome'}, 'place served by airport', 'West Memphis']
SELECT DISTINCT ?h WHERE { ?h property:place_served_by_airport resource:West_Memphis . ?h rdf:type ontology:aerodrome }
[]
aerodrome
Clarification for simple ques.
Q768007
SYSTEM
Did you mean Southaven ?
Q80050 Q768007
(c(Q62447),P931,Q80050) (c(Q62447),P931,Q768007)
[ANSWER]
[{'concept': 'Q62447'}, 'P931', 'Q80050'] [{'concept': 'Q62447'}, 'P931', 'Q768007']
SELECT DISTINCT ?h WHERE { ?h property:P931 resource:Q80050 . ?h rdf:type ontology:Q62447 }
West Memphis Southaven
Did you mean Southaven ?
Southaven
[{'concept': 'aerodrome'}, 'place served by airport', 'West Memphis'] [{'concept': 'aerodrome'}, 'place served by airport', 'Southaven']
SELECT DISTINCT ?h WHERE { ?h property:place_served_by_airport resource:West_Memphis . ?h rdf:type ontology:aerodrome }
[]
Simple Question (Coreferenced)
USER
No, I meant West Memphis. Could you tell me the answer for that?
(c(Q62447),P931,Q80050)
Q80050
[{'concept': 'Q62447'}, 'P931', 'Q80050']
[{'concept': 'aerodrome'}, 'place served by airport', 'West Memphis']
[]
Q7985888
SYSTEM
West Memphis Municipal Airport
Q7985888
(c(Q62447),P931,Q80050)
action filter_type
action find_reverse
entity Q80050
relation P931
type Q62447
That administrative territory serves [ANSWER]
[{'concept': 'Q62447'}, 'P931', 'Q80050']
SELECT DISTINCT ?h WHERE { ?h property:P931 resource:Q80050 . ?h rdf:type ontology:Q62447 }
West Memphis Municipal Airport
That administrative territory serves West Memphis Municipal Airport
West Memphis Municipal Airport
action filter_type
action find_reverse
entity West Memphis
relation place served by airport
type aerodrome
[{'concept': 'aerodrome'}, 'place served by airport', 'West Memphis']
SELECT DISTINCT ?h WHERE { ?h property:place_served_by_airport resource:West_Memphis . ?h rdf:type ontology:aerodrome }
[]